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
24 views

JavaScript Libraries with Visualforce [on hold]

Please tell me that how i will run this below code... <apex:page > <apex:includeScript value="{!$Resource.jquery}"/> <html> <head> <script> jQuery.noConflict()...
3
votes
1answer
26 views

How to limit maximum number of characters that can be typed into input field? maxlength attribute not working

I have the following input field: <ui:inputNumber aura:id="testData" label="Test Data" class="slds-input" labelClass="...
0
votes
1answer
18 views

Getting value from javascript to apex:inputfield not worked after button clicked

in PDCReport I'm using Javascript function to fill date range based on picklist value, the picklist values are : "Current FY,Next FY,Next Month ......." the javascript function is called when the ...
1
vote
2answers
15 views

How to get the Select List ID to compare in JavaScript

The below code is not working <script type="text/javascript"> function Disablefilter(){ var selectreporttype = document.getElementById('{!$Component.fid:pgBlckId:pgsec:pgsecitem:...
-1
votes
0answers
18 views

upload 25mb file attachments to salesforce using JS Remoting [duplicate]

I want to upload 25mb file attachments to salesforce using JS Remoting. How can I do so?
1
vote
1answer
24 views

Using Javascript to convert 15 char SF IDs to 18 char IDs [duplicate]

I'd like to create a macro for Keyboard Maestro that will take a highlighted 15 char ID and use javascript to convert it to a an 18 char ID. I understand how that conversion takes place but am a ...
0
votes
1answer
10 views

delay the IFrame

I have a requirement to delay the Iframe by 1 or 2 secs till all other section of the visualforce page complete its load. But my code below is not working. <apex:form > <apex:pageBlock> &...
0
votes
0answers
14 views

Using a custom field instead of record id to update and delete remote object

I'm creating a single page application with ReactJS and it's really fast! But I have a little question. For update and deleting records of a remote object the function needs the record id, is it ...
0
votes
0answers
13 views

Check an app installed in ipad or not [on hold]

I have a requirement like if an app is installed in ipad a click on Custom Link opens Link 1, else open Link 2. Can someone please help. I was trying to use below **Onclick Javascript ** code on ...
0
votes
1answer
21 views

Dynamic placeholders on apex:inputField

Firstly, is it possible to enter the HTML-placeholder dynamically? ({!object.name}) I have an input field on a Visualforce page, to enter a new account name. There is a non-related object called ...
0
votes
0answers
32 views

$A.createComponent throwing error when trying to create the same component for second time

I have to add and remove components from a Modal dialog - so using add code: $A.createComponent("pbrdev:TransactionViewer", { thistrans: ...
0
votes
0answers
29 views

Uniqueness in IDs when display the same component on the same page

I've created a single 'parent' component which I'm displaying through 2 other components on one page like so: parentComponent: <aura:component> <aura:attribute name="kind" type="...
1
vote
1answer
32 views

How to display lead descripition field in vf page using javascript

I need to display lead description field in a vf page using javascript. Coding : var a = '{Lead.Description}'; alert(a); The value is not coming . In console i am able to see one error "...
0
votes
0answers
13 views

Conditional Link opens on availability : Javascript

I have a custom link using execute javascript. Now I have two links - Link 1 and Link 2. If Link 1 is not opening successfully, then only I need to open Link2. Can someone please let me know how to ...
0
votes
0answers
20 views

How to display records using pagination with scroll bar using Div Tag [on hold]

using div tag display contact records, First Display 10 records using pagination in visual force page and assign custom buttons that page. When i click Next Button Display remaining records. i did ...
0
votes
0answers
12 views

AJAX Toolkit Version

Why is it so difficult to find the actual version numbers for the JavaScript and Apex toolkits? For instance, how to I check whether {!requireScript("/soap/ajax/37.0/connection.js")} is the most ...
0
votes
1answer
29 views

Get value of custom field using Javascript

I am trying to make a button that shows up on the Lead List results page. In order to sync with another system properly I need to have this button basically copy the name of an Account that has a ...
0
votes
2answers
35 views

Adding One Year to Date Field Value Through Custom Button

I'm going through one of the Force.com workbooks and attempting to add some functionality to a Date field using a custom button. On click, I want to button to update the appropriate field by moving ...
2
votes
2answers
35 views

Referencing an image from a javascript file, both inside a static resource

Inside a Visualforce page, I have a static resource (MyResource.zip) which contains the following: scripts/Script.js img/iconoTP.gif I'm using the Chrome notifications API to show desktop ...
0
votes
0answers
14 views

JSForce in Google Scripts

I'm trying to use the JSForce library in Google Scripts but when I'm loading it I keep getting an error in the library itself. The error I'm getting is the following: ReferenceError: "setTimeout" is ...
0
votes
0answers
16 views

How to convert string of array to array using jquery. I have to create a dynamic dropdown based on this return value [closed]

I have to create a dynamic dropdown based on this return value. Data Structure: "[System.SelectOption[value="Id", label="Account ID", disabled="false"], System.SelectOption[value="IsDeleted", ...
0
votes
2answers
73 views

Lightning Component jQuery behavior in Summer16

I am having quite a bit of problem with jQuery as of Summer 16 updates. We have a developer edition and a normal dev sandbox and both behave very differently with the same browser with the same code. ...
0
votes
1answer
36 views

Updating attributes on dynamically created lightning components

Say I have a Component that acts as a container and on init I dynamically create a custom component. The custom component has 2 attributes, "name" and "message". Container Component: <!-- ...
1
vote
1answer
33 views

Get the values of Visualforce page

I create a custom visualforce page where user inserts one value (i.e. Indirizzo__c). Now I want to add a button on the vf that create an Event (Salesforce standard Object) and fills one field, inside ...
0
votes
1answer
69 views

Passing variable to controller - if null value, display alert instead

I want to do something like the following in a visualforce page <apex:inputTextarea id="abc" value="if('abc'.value().size()>0,alert('Hi'),{!AModel.Comment.Body}" Can anyone tell me ...
1
vote
2answers
22 views

Using javascript custom button i need to create account and person account record

like lead object i developed one custom button..when ever i click on button i need to create account and person account(person account is enabled in my org). this my code. account is created but ...
3
votes
2answers
137 views

component.find(…).getElement not working after Summer 16 release

This line of code worked perfectly last week: var datepickerIcon = component.find('datepicker').getElement(); Now I'm getting this error: [TypeError: component.find(...).getElement is not a ...
0
votes
0answers
18 views

Dynamically rerender apex:outputPanel using dynamic id using jquery

I have a requirement wherein there will be different blocks each block elements will have different id's generated dynamically, i am facing issue while rerendering outputPanel dynamically.As first ...
-8
votes
1answer
48 views

First Display 10 records Then when scroll is touches the down arrow Remaining 10 Records Dispaly Total 30 records [duplicate]

In my Contact Object Having 30 records By Using Pagination First Display 10 Records and when i scroll down touches down arrow display remaining 10 records... how to do this scenario in visualforce ...
0
votes
0answers
30 views

When Scroller Down to touches Down Arrow show the Contect Object Records using visualforce page

First i dispaly Contact of 10 Records when i click CommendButton (Next) display Next 10 Records then assign a scroller First Dispaly 10 records When Scroller Down to touches Down Arrow show the ...
0
votes
0answers
66 views

Pagination using visualforce page? [closed]

First, display 10 records in my visual force page using account object. When i Scroll down using with mouse, automatically remaining 10 records to displaying that page. And this pagination process ...
1
vote
1answer
24 views

Issue with am onclick javascript button on a Visualforce page

I'm having an issue getting a button to execute javascript correctly on a Visualforce page. The button is supposed to execute an Apsona Merge Action, but instead, it just refreshes the page. When I ...
0
votes
2answers
19 views

Using JavaScript Variables for Visualforce Output

I'm new to using JavaScript in Visualforce and have a basic question that I'm finding incredibly hard to locate the answer to: I've brought data from my controller into a JS variable via JSON....
0
votes
2answers
48 views

Visualforce - Standardcontroller components are not rendering when called from JS

I am trying to preview the email template inside a Visualforce page, and for this purpose, I query for the EmailTemplate record's body inside JavaScript, and then I let the standardcontroller do rest ...
0
votes
0answers
13 views

Passing report parameter in Salesforce1?

We have a google chart on our Engagement__c object, that is written to run a report on click with a passed parameter. This works perfectly in the browser. However, when clicking the link while in ...
0
votes
0answers
15 views

How to find out the SoftPhone Layout Settings

I understand that SoftPhone Layouts are related to Open CTI and its all exposed through Open CTI methods. I'm just wondering if the softphone layout(equivalent to getSoftphoneLayout method) can be ...
1
vote
0answers
27 views

jquery datatable not sorting all records [closed]

I am using jquery datatable show the result. but some reasons i created custom pagination through standard set controller and disabled the jquery datable pagination. While sorting the columns it ...
0
votes
0answers
31 views

Example connect or authenticate to salesforce from pure Javascript

I want to authenticate using only JavaScript in a HTML page. The objective is to do something similar to web to lead: an html file that could be used to create records in a custom object without using ...
0
votes
2answers
49 views

Selecting a element by ID dynamically (JS/jQuery) [closed]

I have a list of html elements which I want to target one at a time such as: thisIsAnId1 thisIsAnId2 thisIsAnId3 I would like to select these individually and dynamically with jQuery, however due ...
0
votes
0answers
30 views

Adding a record via Javascript

I have the following: I have a table element populated by <apex:repeat>, which works fine. However I have some Javascript that appends a new blank row to the end of the table and while I have ...
0
votes
1answer
43 views

Edit Image Before Upload [closed]

I have a requirement like after choosing the file there should be a section below that for edit purpose so that i can crop the image and a button should be there to replace the original file with the ...
1
vote
2answers
17 views

How to remove autofocus from first input field in PageBlockTable?

I have a page block table : <apex:pageBlock id="adressInput" mode="maindetail"> <div class="panel panel-default"> <div class="panel-body"> <div class="...
1
vote
2answers
30 views

Lightning supports ES5?

I'd like to know if it is safe to use ES5 in Lightning. Is it fully supported? If no, which features are? Is it browser specific? Any predefined polyfills?
0
votes
0answers
33 views

Using Javascript to update the quantity of one OpportunityLineItem in a Visualforce page based on the total quantity of a subset of the other OLIs

I have a somewhat complicated use-case I'm trying to solve. I have a visualforce page that we use to configure OLIs on Opportunities. What I'm trying to do is derive the quantity of one particular ...
1
vote
0answers
36 views

Service Cloud console action JavaScript security error

We developed a very simple visualforce page with JavaScript to be used as an action in the service cloud console for the case object. Here is the page: <apex:page standardController="Case" > &...
0
votes
2answers
34 views

Enter key for Search button on vf page

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 ...
-1
votes
2answers
48 views

Run javascript when clicking button on vf page

Previously I had a custom button on a custom object and I set behaviour to "execute javascript" and content source to "onclick javascript". {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} {!...
-3
votes
0answers
23 views

datatables.net column sorting at footer level

I have the data table in vf page and displaying it using the datatables.net open source. Business require the column(Amount) Sum at the footer level and let me know how to achieve this using ...