Skip to main content

Questions tagged [javascript]

Javascript is a weakly typed interpreted programming language primarily implemented by web browsers to allow for client-side scripting. It can be used in Visualforce pages to give a more dynamic experience to end users. Additionally, the Visualforce engine generates and uses JavaScript to support the functionality of some of its components.

0 votes
0 answers
13 views

I have a Lightning Tree Grid view and I would like to have a different style for groups inside the view. For example: Bold or a different color I did not find any documentation on this, maybe ...
Z0q's user avatar
  • 40
2 votes
1 answer
70 views

I am building a custom LWC for record create/edit using lightning-record-edit-form. The form uses lightning-input-field components and saves the record using: form.submit(fields); For a Number field ...
Go Joy's user avatar
  • 21
0 votes
0 answers
60 views

var tkey = ''; <apex:repeat value="{!langs}" var="lang"> tkey = $$.trim('{!JSENCODE(lang)}'); //escape tkey = tkey.replace('"','').replace('[','').replace(']...
change_is_necessity's user avatar
0 votes
0 answers
48 views

Sorry for the confusing title. I'm working on an lwc for a client that consists of two data tables. It's used to select assets. This client has over 10 million assets and needs to select multiple ...
Michael Kerby's user avatar
0 votes
0 answers
118 views

How to detect when a user changes width of columns? I would like to use an event handler for this so I can save the new width of columns into localStorage and set initialWidth of columns to stored ...
Z0q's user avatar
  • 40
-1 votes
2 answers
77 views

Using the <lightning-tree-grid> view I would like to show conditional images as values. I do know how to change the CSS but I haven't yet figured out how to make conditional images show ...
Z0q's user avatar
  • 40
0 votes
1 answer
159 views

I followed the instruction present in the website to use FullCalendar - https://fullcalendar.io/docs/initialize-globals . I downloaded the zip file and compressed just the index.global.min.js and ...
SfdcBat's user avatar
  • 4,779
0 votes
0 answers
38 views

In aura component <lightning:map mapMarkers="{! v.mapMarkers }" markersTitle="{!v.markersTitle}" /> Js : mapMarkers.push({ location :...
Fark's user avatar
  • 45
1 vote
0 answers
55 views

@wire(getNearbyAccounts, { accountId: '$recordId' }) wiredAccounts({data, error}) { if (data) { const baseUrl = window.location.origin; this.mapMarkers = data ....
Fark's user avatar
  • 45
0 votes
1 answer
137 views

I'm using what appears to be a simple Jest test, but when run this test expect(span.textContent).toBe('OK: Test Message'); it fails even though the strings are equal. Here's the test it('should ...
John Thompson's user avatar
1 vote
1 answer
73 views

When I define the value for my @api-annotated method, the value shows up as empty ([]) on the test. For example: const element = createElement('c-my-modal', { is: MyModal }); element.listProperty = ['...
Renato Oliveira's user avatar
1 vote
1 answer
112 views

I’m building a LWC that uses to edit an Account__c record. I need to run all of its built-in client-side checks (required fields, data‐type and length validations, etc.), but I do not want to ...
Jeff Chan's user avatar
0 votes
0 answers
72 views

I'm getting duplicate API calls on a cloud page that uses http post method. User clicks a button in a previous page and lands on the page with the below code. Here's the code I use: var url = ...
Tyrath's user avatar
  • 1
0 votes
0 answers
52 views

I created a method that opens Screen Flow for me. The script is below. window.sforce.opencti.screenPop({ type: window.sforce.opencti.SCREENPOP_TYPE.FLOW, params: { flowDevName: '...
Kamil G.'s user avatar
1 vote
1 answer
495 views

Im writing an LWC that generates emails using context of current Case using prompt builder. Im done with the part till getting the G=generated email into the LWC, and I want to be able to click on ...
Shri Vignesh S's user avatar

15 30 50 per page
1
2 3 4 5
374