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
0answers
9 views

Copy One custom field value to another custom field for a custom object

As in the accounts edit page, I want to achieve the Copy Billing address to shipping address for a custom object. I know this can be done either WF or trigger but I want that to be dynamic and based ...
2
votes
2answers
63 views

Return list of records from Salesforce Object with JavaScript

How could I return a list of records using only javascript, with no apex: elements. My original approach was to use an apex:repeat like so: <apex:repeat value="{!attachments}" var="attach"> ...
1
vote
1answer
27 views

Call a method with parameters from script in a Visualforce page

I want to call a apex method with parameters from my script in a visualforce page and use the return value to feed a inputField. I tried to explain it in the code here(hope you understand my request): ...
1
vote
0answers
17 views

Using SSJS to retrieve bounce data

I'd like to create an SSJS script which retrieves bounced emails from a send activity. I've tried testing by creating a simple landing page and started by retrieving sent emails for now, but it just ...
1
vote
0answers
17 views

Show The first field value based on 2nd field value dynamically?

I have create a page which has picklist based on that picklist i have to show the rows and in that rows i have toshow 1st row value based on 2nd valu means level low days high ...
1
vote
1answer
15 views

Conflict in actions inside block table

I have a table with two actions, first is delete record If i click on delete icon (commandLink), the second action get record Info when I click on the row. but If I click on delete (Icon) the two ...
0
votes
0answers
14 views

Salesforce picklist related Question? [on hold]

I have 4 text boxes with field names like Field1 Field2 Field3 Field4 and one picklist field . Picklist values are like TextArea,Drop,Radio,Checkbox. My requirement is i Filled ...
2
votes
3answers
28 views

Change VF background with Javascript reference to a Static Resource image

I have made a small script to change the background color of my VF page. Here's my script <script language="JavaScript"> function changeBGC(color){ document.bgColor = color; } and ...
2
votes
1answer
23 views

Can I append apex elements to html with jQuery?

In a visualforce page, if I have a DOM completely created dynamically with jQuery, could I append the following code dynamically too? <div id="file"> <apex:inputFile ...
0
votes
1answer
23 views

Passing Javascript Value to Controller is Nulling

I am trying to pass from my JS to my controller and in the console log, All the values appear correctly. When I check the controller they are all null. I have looked it over 1000 Times. It could be a ...
2
votes
1answer
52 views

How to hide fields (input) by jQuery - Visualforce

I would like to show or hide fields depending on the value of another field. I was not able to find and implement the existing topics. function selectService (){ if($jquery('[id$=inField1]').val() ...
3
votes
1answer
33 views

VFRemoting escape option

We are currently looking into the best place to handle escaping (html encoding) when using VFRemoting. It had been suggested to us that using always the option {escape: true} was the best approach ...
1
vote
0answers
22 views

Adding SSJS Script Activity to ExactTarget Automation Studio

we need to do the following and I'm rather lost of where to begin, so I was hoping someone could point me in the right direction. We need to create an SSJS Script Activity to Automation Studio (this ...
4
votes
1answer
46 views

How to load static javascript resource in HTML Component

I've uploaded a jQuery library document into our SF Shared Documents and want to be able to reference that document in a sidebar HTML component. I've tried many variations of the below with no luck: ...
2
votes
1answer
93 views

Collapse Inline Visualforce section on standard page layout

By default I want my inline visual force section to be collapsed.I can only see show scrollbar,Height,Width and Show label under pagelayout settings.I know salesforce remembers the collapsed state.But ...
0
votes
1answer
31 views

Javascript Remoting to display a table of records

Have been trying to learn Javascript Remoting since hours. I have manipulated this example to display a table of records with remoting an apex class. Following is the controller and VF.. My controller ...
13
votes
2answers
282 views

Custom labels in javascript

How one can access custom labels in javascript linked as separate static resource? For example, some user action on the page should trigger confirmation dialog with custom message. And this message ...
2
votes
2answers
90 views

JavaScript doesn't work with Apex command Button

I was able to get the id of the button but no able to get the outputText id. Please help <script > function exButton(){ var remainingValues = ...
2
votes
1answer
219 views

Javascript Button that works for some reason

I created a button which will update SAPReleased__c only if Approved__c is true(SAPReleased__c and Approved__c are both check boxes). What I don't understand is.. Why is this working!?? ...
0
votes
1answer
47 views

How to Using JSON with visualforce

I'm new on visualforce and JSON, and I have a page that have many inputFields want to insert them by clicking on save, and get them back on click on edit button for example, I searched on google for ...
1
vote
1answer
26 views

Visualforce - Display Controller Extension Member Variable Data

My VF Page : <apex:page standardcontroller="Expense__c" extensions="ExpenseController" sidebar="false" showHeader="true" showChat="false" recordSetVar="exp" > <script ...
2
votes
1answer
27 views

Where is 'emailauthor.jsp' is coming from?

I've created a custom button sending email some time ago following these instructions: https://success.salesforce.com/answers?id=90630000000gtNyAAI I just realized i do not understand where this ...
1
vote
1answer
50 views

JavaScript Button

I have a JavaScript button that is meant to set SAPReleased__c = "True" whenever it is pushed. Now this should only work when Approved__c is True. This is my current code which isn't working.. Any ...
1
vote
2answers
80 views

JavaScript file in a static resource [duplicate]

I have a two JavaScript (.js) files in a static resource. When I enter the full URL of a JavaScript file in the browser, ...
0
votes
1answer
25 views

ajax toolkit : Javascript alert not displaying any value

This is OnClick Javascript code invoked from a List Button on a related list UI. var cid = '{!Case.Id}'; varQueryString = "select id,integration_status__c,Target_System__c from transaction__c ...
2
votes
0answers
26 views

Salesforce One: can I call another Android App by startActivityForResult from HTML5 (JS)?

I want my Salesforce1 App uses another Android App seamlessly. It is easy if we have access to App code, but with Salesforce1 we have not. So, can I call another Android App by startActivityForResult ...
1
vote
1answer
29 views

Access merge fields from js script injection sidebar component

I have an HTML sidebar component that I'm using to inject js scripts in all standard pages. I need to be able to access global variables such as $User. How can I do this outside of a VF page? So, I'd ...
2
votes
1answer
27 views

Visualforce: Link to open a Activity task in Salesforce 1

I have worked on displaying a google map which displays all contacts related to a campaign on the campaign detail page. On every marker, I have added a button which when clicked opens the "Log a ...
2
votes
1answer
59 views

How to get parent window <title> from a child page using JScript from SFDC Home Page Component VF Page

I have a simple Salesforce.com Home Page component that has an iFrame to display my custom visual force page that has only one button on it. I am trying to find out how to display Parent Window (the ...
1
vote
0answers
29 views

JavaScript to determine Salesforce1 location (native app or mobile browser)

I've found that I need some different behaviors based on whether the user is visiting my VisualForce page via the Salesforce1 native app (iOS or Android) or is using a mobile browser on the ...
0
votes
0answers
66 views

OnClick Javascript in custom button is opening in new window instead of tab on initial click in Chrome

I am having an issue with some onClick javascript that I need to open in a new tab in Chrome. I am using an Apex Class to generate a URL and then opening that URL inside the javascript. Here is my ...
2
votes
3answers
35 views

how to call the javascript function through ActionFunction?

In The below code the submitEmp() method not working can any one tell me how to call the javascript function through the ActionFunction <script> function innerJavascript(){ alert('Start ...
2
votes
1answer
95 views

Onblur issue on text box autocomplete..?

I have a VF page..I have a button open pop up..on click of that button i am opening a pop up using output panel and css...using the code something like this.. LINK ...
2
votes
1answer
54 views

Javascript / Visualforce Integration

I'm having some problems with some javascript / visualforce integration. What i'd like to do is when the user clicks a button do some javscript error checking calling and if it fails, display a pop ...
2
votes
1answer
48 views

On blur issues in jquery..Need focus to change out of text box..?

I have a VF page..I have a button open pop up..on click of that button i am opening a pop up using output panel and css...using the code something like this.. LINK ...
3
votes
1answer
91 views

How do I use Javascript or jQuery externally to send data to Salesforce Leads?

I have a website form using HTML and jQuery/Javascript on my own domain that I want to post to Salesforce (web2lead or not, as long as it gets there) using an ajax call. I keep getting the ...
3
votes
1answer
52 views

Uncaught ReferenceError: initViewstateTab is not defined. Debugging Visualforce Page/Controller

I'm attempting to build a visualforce page with the following functionality: Dynamically generate 3 picklists, based on children of a given object's values. Based on the values of the picklist, pull ...
2
votes
2answers
49 views

User Input passing to SOQL from Visualforce

I trying to pass a user input (text) into my SOQL statement. I'm using JavaScript to capture the user input then pass it into my controller. It compiles without error but there is no output. This ...
5
votes
1answer
47 views

How to pass a fieldset to javascript?

When my user clicks a button, I want to access the fieldset by javascript. Can i do that? <apex:commandbutton value="Send" ...
2
votes
2answers
61 views

Javascript SOQL Query in a Button

I am trying to runa query in a .js button to pull out an ID of a contact that is associated with a record so I can auto send an EchoSign document. However I can not get this working, my googling ...
2
votes
1answer
28 views

Comma separated values in visual-force page using query or java-script

I have a field which displays values in visualforce Page as follows "a;b;c;d" i want the values to displayed as comma separated values as "a,b,c" I using a repeat tag inside which i have field ...
2
votes
1answer
24 views

Query on permission sets held by a user

Does anyone know a basic way that I can run a SOQL query to see which permission sets are attached to users? We have a rather large issue where a button needs to be on a page layout for a few ...
2
votes
1answer
160 views

Hide/Show Text Field Based upon Radio Button

I have 3 radio buttons in my visaulforce page, and 2 text fields. When I click the first radio button, at that time the first text field should be displayed. When I click the second radio button, the ...
0
votes
1answer
21 views

I have reference ID and i have to display it dynamically but its not working!

Here is the code that i written: <script> function myFunction(var num) { alert("Claim form has been successfully created with reference number:" + num); } <apex:commandButton ...
2
votes
2answers
74 views

Saving JQuery Toggle State on Home Page Component

I have an HTML Area component on the homepage that contains an iFrame that is toggled either visible or hidden on button click. I'm using the JQuery toggle function to do this. Currently the div for ...
1
vote
1answer
56 views

calling or using javascript function inside actionSupport

I have a pageBlockTable with rows, I want to call function from javascript or write a js function when I click on row. <apex:pageBlockTable var="c" ...> <apex:column ../> ...
1
vote
1answer
43 views

highlight single selected row in table

I have a table with rows, i want to highlight the selected row to do some actions on it. I used onRowClick and give it background color, but if i click on anothe row, it highlight two rows .. how to ...
0
votes
1answer
25 views

Modifying pages in managed package

I have a requirement to add some javascript/jquery to a page from managed package. Is it possible to do that? Also, please let me know if I can do DOM manipulation of visual force pages which are ...
0
votes
1answer
32 views

IsPickVal having issues inside of OnClick Javascript

For some reason this if statement is always triggering regardless of if the criteria is met or not. {!REQUIRESCRIPT("/soap/ajax/27.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/27.0/apex.js")} ...
0
votes
0answers
15 views

Saving state in OpenCTI iframe between page loads

We have an in-house OpenCTI adapter that we use with salesforce. It's primary responsibility is to find associated records and pop the results when a new call comes in. We have a tendency to have ...