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

learn more… | top users | synonyms

0
votes
1answer
15 views

salesforce field(richtext area) shrink via javascript [on hold]

I have a field as type as richtext area. and I use a visualforce page that has an editor to wtire text or insert image on that richtext area field. When i inserted an image and write some text on the ...
0
votes
1answer
22 views

Convert picklist and dependent picklist to multiselect picklists in visualforce page

I want to convert picklist and dependent pick list in to two multipick lists in visualforce page for selecting multiple values for searching purpose. When I select multiple values in first ...
2
votes
0answers
26 views

Getting “unsupported_grant_type” error when using Angular.JS app + ExpressJS proxy

I know there's already a lot of discussion around the "unsupported_grant_type" error that occurs when using the Username/Password Authentication Flow, but I've exhausted through all other proposed ...
0
votes
0answers
13 views

Getting Ajax response 404, when calling javascript onClick button [on hold]

{!REQUIRESCRIPT('http://192.168.1.7/ConVox3.0/scripts/jquery-1.8.2.min.js')} var username="vinod"; var password ="12345"; $.ajax({ type: "POST", url: ...
0
votes
0answers
9 views

Integration of a check box within a custom modal window

I have written the following code in a visualfroce page under a script tag. Now within the alert I want to integrate a checkbox as well as pass its value in the remote action method. Is it possible to ...
1
vote
0answers
33 views

visualforce apex tag JS error when selecting picklist

Anyone have already encounter this issue? Error will occur if you select the any of the picklist. Any other way to fix the issue? VisualForce Page <apex:page showheader="false" sidebar="false" ...
2
votes
2answers
26 views

Javascript List Button Not working

I am trying to create a list button to update a status field on a list of records, but I have problems with the syntax. Please help.. {!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")} var url = ...
1
vote
1answer
25 views

How to pass values between two components

In a VF page, I have two i.e. A and B.In first component,there is a search box. Second component will display data type in first component search box. So How can I pass data between these two ...
1
vote
1answer
18 views

Error on Auto completion

<td id="Nico{!(ROUND(rowNum,0))}"> <apex:inputField value="{!qli.Name}" id="Name" style="width:110px" required="true" StyleClass="AutoPin" ...
0
votes
1answer
24 views

How to pass variable from a client-side(javascript)controller to server-side(APEX)controller?

I am currently trying to pass a variable from a client-side(javascript)controller to server-side(APEX)controller. I'm currently using setParams() in the client-side controller to set the current ...
-1
votes
0answers
20 views

Why does this javascript button not work?

Onclick Javascript {!requireScript("/soap/ajax/26.0/connection.js")} var url = parent.location.pathname; url = url.substr(1, 15) var task1= new sforce.SObject("Task"); task1.WhoId = url; ...
0
votes
1answer
27 views

Refine jQuery selection & Javascript action

I have this jQuery in my Visualforce page that adds some styling and updates the value of a pick list field in the row when a selectCheckbox is checked. <script type="text/javascript"> j$ = ...
2
votes
1answer
91 views

General way to distinct between different Org types?

I need to distinct between different Org type as follows Production Org Sandbox Org Developer Org Demo Org (created by Salesforce, sometimes called SDO - or created by partners, sometimes called ...
0
votes
1answer
17 views

Value passing from Tab to Script

I am trying to call the value called 'a.id' in my script functions <apex:column value="{!a.id}" headerValue="Publication SFDC Id" id="ID"/> <script> ...
3
votes
0answers
33 views

Does anyone know a good snippet collection for APEX, Lightning and SF-specific JS?

I'm improving our free IDE CodeFusion and just added configurable snippet support in the new version. Internally we are using ACE Editor. Now technically I'm already done and it works like a charm. ...
3
votes
1answer
41 views

What is the Function of aura:dependency?

I came across something that vastly improved the performance of the Lightning application that I am building. However, I am not sure exactly why. When my application initializes, I am calling a doInit ...
0
votes
0answers
41 views

Multiple conditon in script tag [on hold]

Please find below script tag directly fed in my apex page. I need to check for multiple conditions to disable an input field. It is not working.Here 'out' is the id for inputfield. I do need something ...
0
votes
1answer
25 views

Javascript Message show on List button click for a profile

I have a requirement to show a javascript pop-up that 'U r not allowed' when a particular profile Users click on the List button. For the rest of the profiles , I have a landing VF Page to deal with. ...
3
votes
1answer
35 views

Returning an object from an AuraEnabled method with properties named r or s

When you run the code below, everything works as expected. The console logs an object with all of the a-z properties minus r and s of course since they are commented out. If you uncomment s, the ...
3
votes
2answers
25 views

Is there a way to mass-check Checkboxes when updating a Profile's Object's Field Level Security?

Is there a way to mass-check Checkboxes when updating a Profile's Object's Field Level Security? When setting Field Level Security for a Site's Profile (or any other Profile), I have some objects ...
1
vote
0answers
7 views

Global Campaign Member Status Update

Our business does live events every weekend and we use Salesforce Campaigns to track prospects and mark attendees. Right now, for each campaign, we get two campaign member status, "Sent" & ...
1
vote
1answer
48 views

javascript show a div while check radio button

I have 3 radio buttons, and when I select one I want that the div corresponding div shows up. <apex:form > <apex:selectRadio value="{!livraison}" layout="pageDirection" id="radios"> ...
-1
votes
0answers
20 views

How can i get autocomplete value? [duplicate]

I have created controller and visual force pages. I check my controller in debug it's getting all values. I need to get values through in visual force pages. I have using java script I am not familiar ...
-1
votes
1answer
25 views

use javascript function in list button onclick javascript

In a List button, i execute javascript code, and for this i defined a static resource where i implemented some functions and i included my resource this way : ...
0
votes
2answers
19 views

How to call vf page in script tag

I want to call visualforce page ad a popup on click. I tried to do it like . Can I call visualforce page in java script like ?
0
votes
0answers
45 views

Autocomplete not working properly

I am new for java script.My requirement as same like below code this code working fine, but not getting exact output. What do I need to change please can anyone help me out. Thanks in advance! VF ...
5
votes
1answer
50 views

Returning a string as part of an Apex class in an AuraEnabled Method

Here's what I'm working with: // Client-side controller ({ handlePress : function(component, event, helper) { var action = component.get("c.returnClassic"); ...
0
votes
1answer
14 views

leaflet.label in lightning component plugin not working

So, I have a lightning component which shows a leaflet map which has a couple accounts shown on it by markers. Leaflet is used as a static resource"leaflet". I would like place labels on the markers ...
0
votes
1answer
27 views

CometD Error: Cannot read property 'init' of undefined

I am having a little fun and working with the SFDC Streaming API... it was working fine yesterday, I was able to subscribe without any issues... however, now I am getting this error: Cannot read ...
0
votes
1answer
26 views

How to create a button that will execute javascript function in Viaualforce Page

I'm trying to create a button on a visualforce page that when clicked will execute a javascript get to submit a form to a remote page. I would truly appreciate any help! Thanks in advance! click: ...
-1
votes
0answers
24 views

Click on button I need to call class to update two fields as below

Clicking on a button to update two fields for all the selected records , Can anyone tell me how to convert into class and then I will call that class from this button. Below is my code.. ...
0
votes
0answers
29 views

Does ui:autocomplete Still Exist as a Lightning Component?

In the current Lightning Developer guide, there is a component ui:autocomplete that is referenced. When I try to use that component in my Lightning component I receive an error stating that the ...
4
votes
1answer
31 views

Caching of external js files when using REQUIRESCRIPT function in onclick list view buttons

We have 2 list view buttons on one page and each references the same js file (e.g., hosted on googleapis.com) having line of code: ...
3
votes
1answer
43 views

A problem with the OnClick JavaScript for button was encountered:

I am facing the error {faultcode:'sf:INVALID_TYPE', faultstring:'INVALID_TYPE: sObject type 'SetupEntityAccess' is not supported.', detail:{InvalidSObjectFault:{exceptionCode:'INVALID_TYPE', ...
1
vote
1answer
24 views

Ajax Call Issue - faultcode:'sf:INSUFFICIENT_ACCESS' [closed]

Getting error message - faultcode:'sf:INSUFFICIENT_ACCESS', faultstring:'ClassName: no access allowed to this class.', Please help. Note: "Access of the class is already enabled"
1
vote
1answer
13 views

Auto expand the treeview (hierarchy)

EDIT: After looking at the developer console I found that its driving the two CSS class showContacts & hideContacts How can I auto-expand the treeview as soon as it clicks on the parent record? ...
2
votes
0answers
31 views

Default from address is not picking for Salesforce email from Case details Page

In our system, there were multiple Organization-Wide Email Addresses configured and verified. In that I need to make one default address as "From Address" to everyone. Eg: support@xxx.com. I am ...
0
votes
1answer
27 views

Detect if javascript is enabled and redirect to custom error page

We need to check if javascript is enabled in user's browser and display some fancy static page with error if it's not. Currently we use the 'noscript' tag approach along with redirection in the ...
0
votes
0answers
43 views

Why do I get a Visualforce error when pressing enter key in html input textbox?

I have an input textbox with a jQuery button. When the button is clicked, I get the desired output. When the user enters something in the textbox and presses 'Enter' then I get a visualforce error. ...
2
votes
1answer
28 views

XMLHttpRequest cannot load, No 'Access-Control-Allow-Origin'

We are getting an error while posting to salesforce WebToLead from local javascript: XMLHttpRequest cannot load https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8 No ...
0
votes
0answers
23 views

Tab changes on click but the header goes hide

I have an issue here with my visualforce page . Here i have 3 tabs. Here if i click on the next tab my next tab comes but the header of the page goes hide. Leeme just show you the other tab. I ...
0
votes
1answer
30 views

Switch between tabs on click.

I am working on a community and on my VF Page i have different tabs. I have all the tabs in save vf page and i divide them using div and IDs. . <div id="tabs"> <div ...
3
votes
1answer
30 views

Canvas RefreshSignedRequest() callback not running

In my canvas app I am running the example code given in the docs to get a signed request from a javascript file: Sfdc.canvas.client.refreshSignedRequest(function(data) { if (data.status === 200) ...
-1
votes
1answer
22 views

How can I default a standard lookup field on a VF Page

I am using using a custom javascript button which sends a list of records to a visualforce task page. There is a an apex class which mass creates records based on the records sent to it once fields on ...
1
vote
3answers
44 views

Hide dropdown box generated by salesforce lookup (user) field

I created a custom lookup (user) field and then added it to my Visualforce page <tr><td style="text-align:center;"><b>Engineer Assigned</b> </td></tr> ...
1
vote
2answers
53 views

Executing javascript within <apex:include> issue

I'm facing a little bit problem with <apex:include> tag. Scenario: I have created a VF page which will executes javascript function after loading. Eg: <apex:page> <script> ...
2
votes
1answer
44 views

Active a tab when a button clicked without reloading the page

I am working on a salesforce community. I have 8 different Tabs but instead of dividing them into different pages i wrote the entire code in singe page. <div id="tabs"> <div ...
1
vote
2answers
37 views

How Do I Add a Large Component to the Body of Another Component?

First, I want to say I'm grateful for this community. Everyone has been a great help in my learning of the new Lightning framework. I currently have an issue on the Lightning framework where I am ...
0
votes
0answers
36 views

Onclick JS not working

The code snippet below is part of the script I created for an on-click event and should display the alert message if the conditions were evaluated true. } else if (BU == "Talent" && Type == ...
3
votes
1answer
22 views

Dynamically resize specific iframe on page layout

I have 2 visualforce pages that will only display data if a certain condition on a Campaign is met. Otherwise the space I allocate for them is just whitespace. I have looked at this question and have ...