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

3
votes
1answer
12 views

Add a Javascript to my Home Page Components

I'm really new with Salesforce but I'm trying to add a Javascript to my Home Page components and I develop the Javascript which inject some values in the address (like Post code according with what ...
0
votes
0answers
15 views

Automatically show the Choose file option/button when a checkbox is selected

Suppose I have one checkbox and one inputfile (Choose File). The idea is whenever I select/check the checkbox (checkbox value=true) then the ChooseFile (inputfile) will be automatically displayed in ...
0
votes
0answers
24 views

JavaScript on custom button

I am having a trouble while running a JS on my button . I have a button name Make Available on my detail page and there is a pick list name status> which is by-default pending. Whenever user click ...
2
votes
2answers
47 views

Inline editing doesn't update last edited value without control loosing focus first

When I double click on the output field and try to change the field value. The updated value is not getting saved when i directly click on save button. Instead, In order to save record I need to ...
4
votes
1answer
57 views

Lightning: is direct API access on the roadmap?

I'm programming developer tools and an IDE. Right now, my code is based on Visualforce and JavaScript. As described here, I would like to convert most of my API callouts form APEX to JavaScript. Also ...
2
votes
1answer
28 views

Is there a Javascript Wrapper Salesforce Metadata API?

I'm using Andrew Fawcett's legendary Apex Wrapper Salesforce Metadata API in several projects. It perfectly works and provides a new dimension of APEX programming. Now there are situations where it ...
0
votes
0answers
10 views

Use {!JSEncode(VALUE)} in Static Resource

I want to use JSEncode function in my Static Resource, as I would not be able to use it on my page due to some restrictions. Is there a JavaScript equiavalent function? Or, can we find it somewhere ...
1
vote
2answers
34 views

DatePicker Issue

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

Get values from child page

I am creating an custom vf page for opportunity. I am having 5 input text box which has an lookup. on click of this lookup an pop up should get displayed(i.e custon child page) and should select ...
3
votes
1answer
73 views

Best Practice - Lightning JS (Code reuse, testing frameworks and IDE support)

I asked about the difference between controller and helper and it prompted me to ask another, more specific set of questions: What is the best way to reuse JavaScript code across Lightning ...
4
votes
3answers
60 views

Lightning Apps - Difference Between Controller And Helper?

I have just recently started building Lightning Applications, and I do not understand why there are two Javascript components in each bundle. What is the difference between the controller and the ...
1
vote
1answer
29 views

How to run a nested RemoteAction query to update original object?

In the below function I'm trying to update the first result object with the count of matches found in the second query. Problem appears to be that I can't update result[i] within the second query, ...
0
votes
1answer
31 views

How to re-use the chatter follow link

GENERAL IDEA I'm trying to search for a way on how to reuse the follow link (please see image below): Brief description of planned usage: The follow link is the first field in a table If the ...
0
votes
0answers
18 views

Looking to open new subtab from a button on Contact; current subtab replaced instead

I am trying to do a similar thing to How to open a subtab, opening a Case subtab from a button on the Contact detail, and I don't believe that the javascript is firing at all. The page controller is ...
3
votes
1answer
103 views

Javascript alert doesn't work when adding remote action on visualforce page

In the code below, the alert doesn't work. If the I take out the loadleads function, then the alert does work. What's the issue? <apex:page showHeader="true" sidebar="false" ...
0
votes
0answers
16 views

Geocode issue for displaying of coordinate values on the detail page

I am facing some issue in the GeoCode functionality for displaying the Geolocation coordinates on the Contact detail page on the click of save button based on the mailing city and postal code for that ...
1
vote
0answers
14 views

Issue for Geocode functionality in salesforce for bulk record insertion

I want to populate the Geo location values on the contact detail page on click of save button based on the Mailing City and Mailing Postal Code.I have used inline visual force page on contact object ...
3
votes
1answer
64 views

JavaScript Custom Button

I am trying to build a javascipt custom button that launches a google hangout and calls with person's phone number on the Lead record. Google has indicated this is what a page with a google hangouts ...
1
vote
1answer
39 views

Popup confirm window on custom login page

I have a custom login page the makes use of the SiteLoginController. When the user inputs their username and password, I need a popup window to appear that they would need to acknowledge before it ...
3
votes
2answers
78 views

Are sidebar Javascript workarounds also possible for partner portals / communities?

this solution not works on portal please help??? End of javascript sidebar workarounds?
3
votes
2answers
48 views

Determine If Sandbox from Instance URL in Javascript

There's been a few questions around working out if an org is a sandbox or not, but typically these are done via Apex. I need to find out an org's type (only sandbox/prod - dev etc. don't matter) using ...
0
votes
2answers
34 views

Prompt user in Javascript on user click

I have a pageblock table. Upon click the add button, it will trigger the add() method on my controller and return the boolean 'BO' value, I would like to check if boolean is true, there will be a ...
0
votes
0answers
20 views

Salesforce; Leads View; Page selector; Replace with custom button

Hello stackexchange community. I recently came across a pretty strange thing in Salesforce, Leads View. Whenever i have a list of Leads which is more that 5 pages, the page selector in the bottom ...
0
votes
0answers
18 views

Mass edit page dependent picklist

We're using the 'mass update and edit' salesforce app off the appexchange for mass editing accounts and I'm looking for a way to dynamically display the dependent picklist based on the controlling ...
1
vote
2answers
60 views

Trying to add delay in outputlink onmouseover

I'm trying to add a 1 second delay when user hovers over an outputlink. For now window.open triggers an immediate popup of a window. Here's what I tried to delay for 1 second.. 1st Attempt: ...
1
vote
1answer
24 views

Is Aura not compatible with require.js?

After the update to Spring'15 I noticed, that behind the curtain somehow Aura is now used to include report-charts on standard page layouts. In Winter'15 the report-chart were loaded differently (I ...
0
votes
0answers
14 views

arshaw Jquery full calender not working in force.com enterprise edition

I have used this http://www.codebycody.com/2013/06/create-calendar-view-in-salesforcecom.html to integrate jquery calendar.. It's working fine with developer edition but same code if i copy in ...
-1
votes
1answer
38 views

How to put values into variables using Javascript or JQuery

So, I have a certain amount of divs generated in a PHP file using a "for loop". They all look this way: <div id=book1> <img scr=headerX.jpg> <img scr=bodyY.jpg> <img ...
1
vote
2answers
48 views

Pass apex value from one page to another

I have an outputLink like this: <apex:outputLink value="/apex/NewPage?id='xxxcccxxx'> <div class="link_class"> <strong>Link</strong> </div> ...
0
votes
1answer
29 views

How to escape this string to use variable?

I have a string I would like to escape to insert variable. Cannot successfully escape the string. '<a href="/'+result.Id+'" id="'+result.Id+'" position="relative" ...
1
vote
1answer
21 views

VF, show RemoteAction error message

I'm writing VF page and I'm curious. What is the best way to show error message on page from RemoteAction? Should I just create some <div> and set to it's error message or there is way to set ...
1
vote
3answers
35 views

Need to add a redirect URL to a Custom Button using Javascript

My apologies in advance for being a JavaScript newbie. I just discovered custom buttons could create new related records, and I managed to get that working with no problems. Now, once it's done ...
0
votes
0answers
19 views

Change Recordtype without Recordtype assigned to profile

Use Case We have RecordType ABC and RecordType DEF. RecordType ABC should be assigned to Profile A but Recordtype DEF should not. Like this, when a user assigned to Profile A creates a record, he/she ...
0
votes
2answers
28 views

How can I access global javascript variables in the browser console?

This is kind of annoying when developing javascript inside Visualforce: I can not find my global variables ! Build a Visualforce page with showHeader="false" <apex:page showHeader="false"> ...
2
votes
1answer
36 views

Apex JSON.serialize() with null values (RELOADED)

I need to serialize a list of SObject without omission null values. This string I need for a later usage in JavaScript. Structure is crucial, because I need to construct a table out of it. The ...
0
votes
0answers
17 views

Getting Image URL in Javascript while querying salesforce image

I am using REST API to get image from salesforce in Javascript method. The response which I am getting is "/services/data/v27.0/sobjects/FeedItem/0D590000018FTTQCA4/ContentData" How get the image ...
0
votes
0answers
13 views

Visualforce Salesforce1 Detection Wrong Result

<script type="text/javascript"> var __sfdcSessionId = '{!GETSESSIONID()}'; </script> <script src="../../soap/ajax/28.0/connection.js" ...
0
votes
1answer
94 views

Apex inputfield value using Javascript

I am using Javascript to get the value of an account lookup field contained in a visualforce page component. In the console, the value of my Javascript variable is Null. Please advise on the correct ...
0
votes
1answer
19 views

Onmouseout event not working

I'm trying to show an iframe onmouseover event and close that iframe onmouseout. Onmouseover is working but not the onmouseout event. Here's what I have tried.... <apex:outputLink ...
1
vote
1answer
28 views

Salesforce, Email Template, Field “Additional To” cuts the rest of address after “&” sign

Hi stackexchange community. I have noticed that the e-mail template i've been using somehow cuts the rest of the address in "Additional To" field, if it contains "&" sign (e.g. ...
1
vote
1answer
41 views

Dynamic Visualforce Component or Javascript?

I have a requirement where, the client needs to plan a budget on Month/Country basis. First select the % of budget that the Month Gets. Lets call it x. Then select the the % of x each country gets ...
0
votes
1answer
39 views

Visualforce Search Page - Dependent Picklists

I'm working on building a custom search visualforce page and I've run into a problem. I have added 2 picklists (one controlling and one dependent) as filtering fields. However, when I go to the VF ...
0
votes
2answers
33 views

Custom Button: Illegal Token error

I am trying to create a custom button on a detail page that updates a field on the record. Here is my code: {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} var newRecords = []; var idLob = ...
0
votes
1answer
24 views

Override default “Recent Order” list view

I have been using a visualforce tab to override the default "Recent Order" list view for a custom object "orders__c" Following is my code... <apex:page > <script ...
0
votes
1answer
24 views

latest supported extJS Version

What is the latest version of exjs that is supported by Salesforce? I use currently ext2.2 in my VF page
0
votes
1answer
40 views

Validation on Field : JavaScript regex required for Field

Following is the requirement of field value should be - else it should generate an error Format to be only 9 characters with 2 letters, followed by 6 numbers, followed by one letter e.g. ...
0
votes
1answer
27 views

Custom chat page with deployment API

I'm using deployment API to open chat window. I have created custom apex page for the chat. How can I tell deployment API to use that custom page instead of default one? Example code: ...
2
votes
1answer
114 views

Pass a JavaScript Date var as the apex param value

I'm having trouble passing a JavaScript date type var as the apex param value. The following is a sample code segment... <script> var today = new Date(93740000); <apex:outputText ...
2
votes
1answer
151 views

Select only One row of table by using radio button [duplicate]

I want to select only One row of table using apex:selectRadio.. please share some code or helping link if any.. Thank You.. when i click or check one radio button other should be unchecked according ...
1
vote
0answers
34 views

backbone.js in Salesforce1

I am starting to build some mobile samples in Salesforce1 using backbone.js I came across two js libraries - Backbone.Force https://github.com/pwalczyszyn/Backbone.Force this extends backbone.js ...