javascript's questions - English 1answer

3.396 javascript questions.

Background I am trying to use the PageDown JavaScript library: Markdown.Converter.js - (click to view source) Markdown.Editor.js - (click to view source) Markdown.Sanitizer.js - (click to view ...

BACKGROUND I am trying to use the PageDown JavaScript library: Markdown.Converter.js - (click to view source) Markdown.Editor.js - (click to view source) Markdown.Sanitizer.js - (click to view ...

I have a custom Javascript button on the Case object that creates an Opportunity. I am getting the error: "A problem with the OnClick JavaScript for this button or link was encountered: missing ) ...

I am using this below code to record how many times an user is clicking a link i.e onclick i am calling an action:function and it is working fine. But the user is doing open link in new tab. When he ...

I've got some fulfillment code in dialogflow firebase where I ask for some user info, then I want to use that info to create a salesforce lead. This code is just grabbing the params from the agent: ...

I have visualforce page that renders the data in apex:pageBlockTable I have checkbox with button, I'm trying to acheive the following: When the page loads I want the button to be disabled If the ...

On Visualforce pages we were able to use {!$Site.BaseUrl} ([A global merge field type to use when referencing information about the current Force.com site][1]) to get the base url, so it was easier to ...

I've created a custom Lookup field to look into Accounts and have the ability to multi-select accounts. I want to place this field on the Opportunity Object as we have an Account Record Type for ...

I have a Lightning component with two <aura:iteration> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:attribute name="invoices" type="Object" /> <aura:...

The standard live agent chat button code uses 2 html elements, how could it be re-structured to use just a single element and use css to show/hide the button when it is an online state? The reason for ...

I have a requirement to pop up a message depending on a field value,when the user clicks the save button on a visual force page. If the user clicks ok the record should be saved and if cancel then the ...

For a project requirement, I want use the Custom Quote Calculator Plugin on Salesforce SteelBrick CPQ. I have gone through many posts/Forum What I have understood is that this can be done using APEX ...

Could you please to help this? I'm very new with javascript.I have tried many way but it doesn't work. I have problem with javascript function I have tried to call method from controller but it doesn'...

VF Page code: <script> $(document).ready(function() { //showing spinner here callAsyncProcess(); function fireOnComplete(){ //stopping spinner here } }); </...

I am using a <lightning:input type="time"/> component and the picker is displayed to the user in 12 hour time with an AM/PM picker. I want to display this value to the user in a table and the ...

I have a command button which calls my JS method and then calls my actionfunction like the example below: <apex:commandButton onclick="removeCheckbox(this);" value="Save"/>&nbsp;&nbsp; &...

I have below code snippet where I have perfectly working select all checkbox. My requirement is to deselect the checkbox after I have successfully updated relevant records in apex class. Page <...

I need to open a vf page in same primary tab by closing the current primary tab on clicking the custom button in the detail page. {!REQUIRESCRIPT("/support/console/36.0/integration.js")} {!...

My component is not initialing if I use as a field Account__r.BillingCountry in the javascript controller, to pass it as a parameter to the controller. This is my partial code: <aura:component ...

I have a JavaScript button which works fine in classic but doesn't show up in lightning, my guess that JavaScript buttons are not supported in lightning, I couldn't convert it using the converter ...

I'm trying to access a field: NIF__c in a Account, being the account a lookup relationship with CreditInfo_Alerts. The component throws an error if I use both Account__r.Nif__c or Account__c.NIF__c. ...

I am trying to replicate the below code in my lightning app component var opts = [ { "class": "optionClass", label: "Option1", value: "opt1", selected: "true" }, { "class": "...

seems I have found a bug which prevents data binding in case of arrayed Maps. Maybe you can help me how to get around this. I have a list of Custom Objects, I iterate over. Each of the components, I ...

I am trying to access the home page from a custom home page component, i.e. of type VF area, through JavaScript but I'm getting Uncaught DOMException: Blocked a frame with origin "https://c.ap2....

My requirement is like below. I have two objects Student and Sports. ** Student ** Name SportActiviy SportDescription etc... **Sports** SportName SportDescription In Student creation page, I have ...

I am fighting with a javascript custom button, I would like to add the behavior to auto populate automatically over the DocuSign envelope the documents. I'm not able to find a way to make this work ...

I need to drag and drop the records in contact object. for example i am having 10 records in contact object.when i drag the 6th record to 4th record, need to replace the 6th record to 4th and 4th ...

I am trying to use a timepiker on an apex:inputField just like this figure and here is my code Visualforce <apex:includeScript value="{!$Resource.timepicker_js}"/> <apex:stylesheet value="{...

I have a Visualforce page which shows an error: Uncaught TypeError: Cannot set property 'value' of null at submitToSalesforce (main.js:55) But when I update the visualforce page it does not update ...

We are trying to implement Stripe integration with Salesforce by using Lightning Components for payments. Stripe use an API for securely obtain the users card information. This API is for the client,...

My question is, should clicking a button reload a page and perform an asynchronous callout? It looks like its reloading the page after finishing the callout. Custom Button : Execute JavaScript {!...

I have done some looking around and I cannot seem to find a current solution to my issue. I would like to call an apex method to remove records when a user leaves a visualforce page. I've gone down ...

Disclaimer Keep it objective! This one can get a little opinionated, please try to keep your answer specific to the facts a developer should be considering when choosing between two viable options ...

In the service console toolkit its not possible to open same record in two tabs since the tabs needs to be unique, reasons for which i understand. But i am in a scenario where in, on clicking a link ...

Is it possible to assign a field to a record loaded with the component lightning:recordForm? Like: component.find('myform').set('v.record.Field__c', 'We were hereeee!')

I have created four apex tabs in a vf page. In that page,I'm using print functionality for the particular div section.Its works fine when i click the print button for the first time.But when i click ...

is there a way to detect if I stay in Salesforce Classic or Salesforce Lightning context from javascript as static resource? I need this because before to detect the user theme I used if(sforce &...

I am trying to add attachments to an account through a Visualforce page using an HTML input file and JavaScript. Attachments are added using this page, but images are not shown in attachments. How to ...

I try to make a list of panels with same toggle-effect. But I get just first working element. How can I make it for the list? <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery....

im looking for some method to divide thread in my lightning component JS. As far as I know is JS running on single thread. but web.Worker function can be alternative. i tried to use web.worker .. ...

I am quite confused by this behavior... I have a component for a popover: <div aura:id="popoverWrapper" style="{!'position: fixed; z-index: 10001; top: ' + v.offsetTop + 'px; left: ' + v....

I have two text field: One normal text field that accepts numbers. <apex:inputField value="{!FinancialAssCont.Down_Payment__c}" styleClass="form-control downpaymentAmount" onblur="...

I am using one custom list button on one of the related list. But sometime when I click on this button I am getting the below error message: A problem with the OnClick javascript for this button or ...

I have a VisualForce page that should pass the selected the value to the controller to update the record. See code below. <apex:inputField value="{!l2.Status__c}"> <apex:actionSupport event="...

Hi I am a newbie at sales force and developin a custom app. In my use case I want to send text to chatter - email section on click of a button. I tried using : document.getElementById("...

I'm new in JS and can't understand, what is wrong here (this is my test value, but then I want to send an arraylist's elements): Apex: public String test{get;set;} public String myApexMethod(){ ...

How could I call force:navigateToComponent from a Salesforce Lightning Custom Object List View? If I try and add a Custom Button or Link which has a Behavior of Execute JavaScript it displays a ...

I would like to know if its possible to create a custom Form. For example, it will have 2 fields. Name and DOB. I can perform a validate via Javascript, but once onsubmit is true, I would like it to ...

I was hoping to be able to use this JS library (https://frappe.io/gantt) inside a lightning component, initially after loading the library I was getting the error .... $controller$doGantt [Gantt is ...

I am displaying a table with checkboxes using wrapper class. Now I want to add a checkbox to the header, when selected it should select all row-checkboxes and when deselected it should deselect all ...

Related tags

Hot questions

Language

Popular Tags