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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 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
  • 51
-1 votes
0 answers
23 views

How to get rid of this error showing up in the console on any and every page in Salesforce? The Content Security Policy directive 'report-to' contains more than one endpoint. Only the first one will ...
Z0q's user avatar
  • 51
0 votes
1 answer
86 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,759
1 vote
0 answers
40 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
0 answers
38 views

I am following this article which lauches the Tableau Viz from a Lightning Web Component - Tableau Insights Delivered Directly to Salesforce with Dynamic Data Security This uses Tableau Embedding API ...
Prakhar Saxena's user avatar
1 vote
1 answer
69 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
34 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
0 votes
0 answers
28 views

I have implemented a div in html file and calling the js function using the onclick event as shown below. how to cover 'onclick={handleShowMoreClick}' through jest? Every time I am getting error ...
Ravi SFDC's user avatar
0 votes
0 answers
30 views

I am trying to use Third-Party JavaScript Library Swapy in a LWC. but I get error on the load script <template> <div class="list-container"> <ul id="swapy-list"&...
Raphael D's user avatar
  • 644
0 votes
0 answers
25 views

We have a Mobile Publisher app and a LWC in it. Our LWC needs to open a telephone number in the dialer on button click. The following Javascript code, however, throws the error Window.open supports ...
dev4life's user avatar
  • 709
0 votes
1 answer
81 views

I have been running in circles with trying to figure out how to send pardot a tracking post, but at the same time complete my regular registration form in my ASP.NET webpage. I cannot use, or pardot ...
Robert Koernke's user avatar
1 vote
1 answer
116 views

Problem statement I have an LWC component that display list of contacts. Upon selecting a contact, there is a child LWC component that loads records from its related record- custom permissions (a ...
Mahmood's user avatar
  • 6,038
0 votes
0 answers
58 views

Has anyone moved from AWS JS SDK V2 to V3? I'm trying to do it. Used webpack to bundle client-s3 and s3-request-presigner. Uploaded that as a static resource. Used the following to load it import { ...
Vedant Gupta's user avatar
0 votes
1 answer
71 views

I created this custom LWC. When user updates and saves Specialty on the EA Record Detail Page, I need my Compensation LWC to refresh the data. I have tried a number of things, but every time I have to ...
Ryan McNeely's user avatar
0 votes
0 answers
16 views

I'm trying to force a CPQ calculation with Apex, but on the QCP I'm using the LocalStorage for another functionality, so when the calculation gets triggered from Apex, I'm getting an error that says ...
Juan Ignacio Carreño's user avatar
1 vote
1 answer
95 views

To display the first name of a member in the first column of my <lightning-tree-grid>, I am using type url to make it clickable, navigating to its record. { label: 'First Name', fieldName: '...
Z0q's user avatar
  • 51
0 votes
1 answer
59 views

The <lightning-tree-grid> implements a padding on the left side of the first column. The other columns do not seem to have this padding. Is there a CSS property or an HTML property that I can ...
Z0q's user avatar
  • 51
2 votes
1 answer
575 views

I am using a lightning-modal and having a hard time getting it to scroll at all. I'm using pretty simple markup, similar to the docs. <template> <lightning-modal-header label="My ...
Adrian Larson's user avatar
  • 153k
0 votes
2 answers
127 views

How do we format currency value to look like this I'm displaying the value with 3 decimals currently, but the ask is to move the third decimal like the format above. I tried following code but didn't ...
Anurag's user avatar
  • 2,266
1 vote
0 answers
37 views

Is there a new setting for serving LWC components in developer/debug mode? I have this LWC with a simple button and handler method with the Javascript debugger keyword, which I've used on so many SF ...
Jan J's user avatar
  • 2,704
1 vote
0 answers
41 views

I have noticed in Spring '25 that legacy Aura code that is invoked from a button click that leverages the method event.target.getAttribute does not work anymore. However, in Winter '25 sandboxes, this ...
Andy Hitchings's user avatar
0 votes
0 answers
192 views

In lightning-datatable, the freezeColumn feature is not available. I attempted to use a custom Lightning datatable, but I wasn't sure how to implement it effectively. As an alternative, I implemented ...
Afrose ahamed's user avatar
1 vote
1 answer
101 views

I'm trying to bypass apex limits when trying to get the base64 content of a content document Sample code below fetchFileAsBase64(contentVersionId) { this.isLoading = true; this.error = ...
dragonman1677's user avatar
0 votes
0 answers
256 views

I'm trying to make markdown js work in LWC but haven't been able to do it. I keep getting the below error from browser markdownPreview.js:1 Uncaught (in promise) ReferenceError: marked is not defined ...
Sharat's user avatar
  • 1,079
-2 votes
1 answer
54 views

I am unable fetch the base url using window.location.hostname due to LWS being enabled in the sandbox. If LWS disabled it workings fine. Any solution would be much appreciated. alert(window.location....
Parwej Khan's user avatar

1
2 3 4 5
113