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

1
vote
1answer
8 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() ...
0
votes
0answers
8 views

how to create a field in an visualforce page using a button and that field add to visualforce page and create in a database How? [on hold]

how to create a field in an visualforce page using a button and that field add to visualforce page and create that field in a database How? please help me
3
votes
1answer
18 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
11 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
40 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
61 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
25 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 ...
12
votes
2answers
235 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
73 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
211 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
42 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
17 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
22 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
45 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
73 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
21 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
24 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
23 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
19 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
47 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
23 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
47 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
32 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
78 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
51 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
40 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
84 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
47 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
43 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
44 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
53 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
22 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
22 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
126 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
20 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
68 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
51 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
34 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
24 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
30 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
14 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 ...
1
vote
0answers
16 views

OpenCTI Screen Pop only when window is in focus

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 ...
2
votes
1answer
23 views

How can I have a form send users to a different page after submitting a form?

I created a web to lead form from salesforce that creates a case, when the user submits the form they are taken to thanks.html. I added a new field and need the user to be sent two one of two forms ...
3
votes
1answer
59 views

Salesforce1 Edit record

How can we navigate to a specify link after edit a record in Salesforce1 ? sforce.one.editRecord(recordId); or a callback function like sforce.one.editRecord(recordId, function(){ //do ...
2
votes
1answer
28 views

Not able to send email after manage package

I have create a custom object in which i have a custom button to send email. I was able to send email. Until i packaged it. My code before package: {!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} ...
0
votes
1answer
73 views

Issues moving a page into VisualForce

have a page that was coded outside of force.com and I have to move it into a Visualforce page. Then, just for kicks, I took the source of the page out of force.com (where it doesn't work) and created ...
5
votes
0answers
60 views

Using the Mobile SDK JS API, how can I determine if I have a refresh token already?

Background I currently have a hybrid iOS app that runs locally (index.html in the xcode app) that essentially provides a basic start page and login flow instructions that lead off to a force.com web ...
2
votes
1answer
179 views

Looking for a simple JavaScript “confirm action” dialog

I have a Visualforce page with a custom link that calls a function in the page's controller extension. Before that function gets called, I'd like to use JavaScript to pop up an confirmation dialog box ...
-3
votes
2answers
85 views

Custom JS confirm button for IF

I need a confirmation alert box to pop up if shipping is set to 0. If the user pressed ok it should redirect to the quote, if the user presses cancel it should stay on the current page. I am using a ...
0
votes
0answers
31 views

How to stretch the column on double click

Primary when click the button it is showing like this for example : we can get the heardname"Author" as data initially show as "tatyana c" . if we want to see the the full name .currently it is ...