javascript's questions - English 1answer

3.321 javascript questions.

I cant set value on div during aura iteration, the reason why I need to set it on a div cause the div is writable contentEditable = true;I want to display value there so it can be edit it. <aura:...

Does anyone have a fix for the scenario where you have a Lightning Component Tab implementing force:appHostable (within the context of LEX not SF1) freezing navigation to all other tabs? The ...

We are implementing SFDC and trying to integrate with a third party (different team within same organization) application using Canvas approach. This third party application is being currently used as ...

From a lightning component I have to open a url but the problem I need to do the check before, and for that I created action.setCallBack where my check is done. the problem here is that window.open ('...

Hello I am creating a lightning component. I have a list of accounts obtained by a query in an apex class. I want to send this list to an array in a javascript controller that will let me assign the ...

I have a VF page on the Account. I have set up 3 radio selections using apex:selectRadio and a Script. I would now like to populate custom fields on the Account (Field1__c, Field2__c, Field3__c) ...

I have an application which depends on outbound calls to REST APIs to fetch data. Is there a way to enqueue and process actions right away? It seems like if I enqueue an action, it is not processed ...

I have a web collect form that will be used in a light box modal for email capture. On the form submission I have a function to hide the div that contains the form and display the thank you div but it ...

We have a customer who is having a problem with the embedded visualforce page for their custom objects that include our component. The issue is with the Cirrus_Files_Dog visualforce page. The page is ...

I'm curently working on some javascript in lightning and it would be so much faster if I could just setup a workspace in chrome devtools so the changes are reflected in the page immediately. Is this ...

In my lightning component, calling a method on onclick event and in turn which calls an another component. which works fine but whenever the page is refreshed it fails to call the component on First ...

Our client's objective to edit info blocks at the community (images and texts, combine the design with a table etc...) i thought i could take a HTML Component - https://developer.salesforce.com/docs/...

want to generate unique Id for Every form pages: <div class="forms-wrapper"> <form class="offer-builder-form" id="formdata"> <div class="offer-builder-...

i have two org, first org i have written code for GET method, Second org i am calling a the rest api GET method from javascipt code. in the calling org i dont get any response but it response with ...

I have a separate .js file and I want to access controller properties and functions using that file but as far as I know we must have a .vfp page and a controller attribute is given to apex:page, but ...

Is it possible to display a pop-up window or a message box, containing text and buttons to agree and disagree to the message, when a user signs into an account and loads the Marketing Cloud homepage? ...

I have created a custom Clone button for the Quote object to clone a quote and update the record type of the new quote. The button clones the quote with the current Record Type of the record it is ...

In vf page on form I created a two picklist field: 1st one is date picklist and another one is days picklist. example when we click on days only days value will be displayed like 66 77 88 etc. when ...

I'm using lightning:datatable to display the Account object in a table. I've also added a regex that lets users search for any field in any column. What I wish to do is, if there are no matches, ...

Can we notify users using a pop up window when a opportunity is being created in backend through a trigger ? The popup should appear irrespective of which tab the user is in .

I am Doing Lightning Super Badge,but stuck atone place. Following is the code snippet. BoatTile.cmp <lightning:button class ="{!v.selected=='true' ? 'tile selected':'tile'}" ...

I want to clear multi picklist value when it is disabled. I'm using like this but it's not working. <apex:page standardController="Contact"> <script src="//ajax.googleapis.com/ajax/libs/...

I am trying a scenario where on clicking a apex commandlink I need to capture a field's value and that value should be displayed on the same page in a seperate output text box or input text field. "...

I was testing Javascript Object Types and trying to bind them to aura attribute Collection types unsuccesfully client-side (for the most case), so I was wondering if there is a reference with a set of ...

Some time ago we used Angular 1.x on Visualforce pages for several apps. Now some of these Apps are aged and more or less in need of redesign. This redesign is not because of any actual shortcomings ...

How to iterate over SObject list returned from server side controller in Lightning Component using <aura:iteration> to show the field values in table using dot notation.I am asking for passing ...

I have the following code in my controller: doInit: function(component, event, helper) { // Create the action var action = component.get("c.getExpenses"); // Add callback behavior for ...

I want to remove the search box from the portal. After doing some research I found some useful guidance that this is possible using jquery. I tried to implement the jQuery in the Home Page components ...

I want to open a popup window using jQuery after clicking on "more" button.. jQuery more/less link in pageblock table <script src="https://code.jquery.com/jquery-1.8.2.js" type="text/javascript"&...

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 ...

How can I retain the button position of a scroll-able area when pressing back button in Salesforce 1? Let's say I have more content in VF page which has 2 or 3 pages and a button on a 3rd page on ...

I am trying to encapsulate logic to determine if a button is visible inside the second argument via anonymous function: component.set("{!v.assignButtonVisible}", function() { console.log('Do we ...

I thought that eval() was supported in Lightning in Summer 18. According to the release notes, it is: The eval() function is now available in Locker Service, even when Strict CSP is enabled. This ...

Hello I have a problem with displaying data into lightning:inputfield Here is my code of setting date to the field: if ((sourceValue == 'Yes') || (sourceValue == 'Ano') ) { ...

Component <aura:attribute name="ListOfOption" type="List" default="[]" /> <aura:attribute name="defaultOptions" type="List" default="[]" /> <aura:handler name="init" value="{!...

My requirement is to call a visualforce - page2 from page1 and then return back to page1 to specific Div (scroll position) Setting the Div Id to Local storage in Page 1 then accessing it in Page2 ...

I have a little problem but I'm not able to find a solution.I'm trying to pass an array variable "d" from javascript to List variable "values" in the apex controller. Here my code: javascript: ...

On the Standard-Related-List "Notes" there is a New Button. This New Button opens a Panel on the bottom of the screen like this: How can I invoke the opening of this "New Note" Panel? I've tried so ...

I have a lightning component which includes a spinner rendered by this code: <aura:component access="global" controller="SomeAuraController" implements="flexipage:availableForRecordHome,...

In Visualforce, we could merge {!TODAY()} directly in the markup. What is the equivalent in a Lightning Component?

Hi i have a problem with passing data into the lightning:inputField. Its inputfield of type Datetime and i want to have a function, when somebody pick Yes from picklist, it will automatically populate ...

Please, could someone recommend a Scheduler Javascript Library / Component which will works in Salesforce Lightning with LockerService? Something like this:

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")} {!...

I had a vf page with multiple buttons like "Search" and "New Record". Can we call the "Search" button based on when the user hits enter.Not sure on how to call the script from command button with ...

we have a pop-up in live agent console. Basically we have a visualforce page on top of third-party live agent console. it will pop up when a call comes in. In the last couple of weeks, the pop up ...

I am trying to open standard page from a custom Visualforce Page through javascript using command button.But it reacts differently each time.It works properly sometimes.But in some cases it opens a ...

Actually I'm trying to Subscribe to Salesforce Platform Event from a Visualforce page, and I found in the documentation articles that I must use cometD to do that. So here is my simple code to ...

<script> window.location.reload(); </script> The above code makes the Salesforce page to keep in the reload state when I add this visualforce page as a page layout. I would like to ...

I'm trying to use the wheelnav.js library to create a wheel navigation in my lightning component. For some reason when the wheel renders, the wheel will not render correctly.. The size the wheel ...

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

Related tags

Hot questions

Language

Popular Tags