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

Need design approach to populate column values on Custom lookup to parent window

I am working on a Custom Lookup which display list of records coming from external sytem. when users click/select on name column, a javascript function runs and update the name (text) on the parent ...
0
votes
2answers
7 views

Update children record using Javascript in button

I am trying to update a field in children records(Purchase_Order_Details__c) with Javascript in a button from the parent level(Purchase_Order__c). My problem is that I need to sum 10 to the field ...
0
votes
2answers
21 views

commandButton only executes first row

I have multiple rows in the pageBlockTable and I want the commandButton to work for each row seperately. Right now it only executes the first row, does anyone have any ideas how I can do this? apex ...
1
vote
0answers
17 views

REQUIRESCRIPT and static resources in list onclick javascript button after “Serve Static Resources from force.com domain” critical update [duplicate]

I just want to raise the problem again. The issue with loading static resources using REQUIRESCRIPT in list onclick javascript button can be reproduced again in Summer 15 preview. Anyone else can ...
-1
votes
1answer
12 views

Can someone provide assistance with Javascript code to validate a custom field on a web to lead form?

I have a basic web to lead form. I have created the following javascript code to ensure that a couple of my standard fields are filled in. If they are left blank the javascript error appears, and ...
2
votes
3answers
55 views

Pass List<String> from Class to VF Page Script

So, I'm trying to pass a list of strings from my apex class to my vf page, to use it on google maps API. The problem is that I can't pass the list containing my data. Here's my code: Class public ...
2
votes
2answers
32 views

File Uploader using ForceTK using multipart message not working in mozilla

I have been trying to upload file from Visualforce using the blog tutorial on developerforce that explains CORS feature.I am preferring REST API tied with VF since I need to built lot of other client ...
1
vote
1answer
58 views

visualforce vs HTML/CSS/JS

UI requirement for our application are such that applications should be very responsive with very less lag time. Users should be able to use mobile easily while working with application. There are few ...
2
votes
1answer
25 views

jquery isn not letting apex:tabpanel functionality to work

Hi i have following code where every thing is working fine... but when i try to add <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> </script> this ...
0
votes
1answer
13 views

checkbox value to = true

I'm trying to get the value of "Data" to equal true when checkbox is clicked and false when it isn't, so when it is used in the query string it is either true or false, can anyone help please? Apex ...
1
vote
1answer
22 views

Access the edit page buttons from visualforce area home page component

After Summer'15 release the html area home page components with java script is not going to work. So we are using visual force area component. I am trying to rename Save button in all standard page ...
1
vote
1answer
14 views

How do I simulate a checkbox click on a Visualforce page from a Controller class?

I have a Visualforce page with a header section that has a checkbox, and a detail section with a table that has a checkbox in the first column. Based on the data loaded the checkboxes in the table are ...
0
votes
1answer
18 views

How can I get the inline edit dialog to be generated programmatically?

I have a VF page that uses with inline editing enabled. I am using jQuery to hide the row containing the Billing Address and Shipping Address fields, and am adding my own address fields after it. I ...
1
vote
2answers
21 views

Trying to re-direct VF on clicking Save button not working

So I was trying to create a VF page which on clicking Save will re-direct the page to google form and following is the code I am using. This is currently loading the page back to VF on edit mode. ...
4
votes
2answers
23 views

Pass JS variable as a parameter in URLFOR

I have the following code: URLFOR($Action[objectname].New, null, [mode='autocomplete',suggestValue='"+queryTerm+"']), '')}" queryTerm is a JS variable and I wanna pass it as a parameter for ...
3
votes
1answer
46 views

Salesforce HTML Area Home Page Components Going Away

With Summer 15 release coming up quickly, and the HTML markup area going away on home page components, I wanted to pose this question. I have some code markup that makes it so that a button disappears ...
0
votes
1answer
20 views

how to open run a DDP (DrawLoop) page w/ custom javascript button

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} if({!Opportunity.of_checked_PLs__c} != 1) { alert("There is either no project logistics selected ...
1
vote
1answer
14 views

Textbox with focus does not save the value in the apex variable

When a user types a value in a text box and then click the save button without first clicking off of the textbox it doesn't save the value. If I click in the textbox and type out the value and then ...
1
vote
1answer
39 views

Can you set a visualforce apex attribute dynamically using javascript?

I'm trying to dynamically set the showDatePickerattribute of an apex input field to get around a strange bug I've been experiencing. I've tried setting attributes using ...
1
vote
1answer
17 views

How do I access fields in an inline edit dialog using javascript?

I am overriding the Edit button to take the user to a VisualForce page that renders the record details via with inline editing enabled. I'm trying to write some Javascript (or jQuery) that selects ...
0
votes
0answers
13 views

Undefined value for a Text Area field in Remote Object call [on hold]

I am trying to access a record in Javascript with remote object. There are some fields whose values are correct but there is a Text Area type field which is returning null. What may be the reason?
2
votes
2answers
25 views

Accessing salesforce REST-API through greasemonkey script

Is it possible to query salesforce through its REST-API using a greasemonkey/tampermonkey script only ? If yes, can someone give me a hint on howw to achieve that. I have been going through ...
2
votes
1answer
35 views

Error: Number is too large in inputField

I have a VF page where I am retrieving Employee records (detail) when clicking on particular Department (master) name using CommandLink. The records are retrieved using repeater. The thing is, ...
0
votes
0answers
31 views

Upload an Attachment/Document through REST API

I am following the instructions in the below link, but I keep getting the error [{"message":"MediaType of ''multipart/form-data' is not supported by this ...
1
vote
1answer
25 views

Javascript navigate to visualforce page button

I basically need to mimic the button content source: Visual Force Page logic I can't use the Visual force drop down button because I need to check that a field is filled in first. So I need to use ...
1
vote
0answers
17 views

Correct redirect_uri for Google Sheet (not web app)?

We have several Google Sheets that interact with Salesforce, all now broken with ouath1 deprecation. I've found lots of examples of oauth2 for web apps, but I can't make it work with a Google sheet. I ...
0
votes
1answer
40 views

Opportunity Stage value is 'CLose Lost' … pls help me

My requirement is If Opportunity Stage value is 'CLose Lost' then a visual page will call and dynamically display the competitor, who gain the opportunity. I am trying with below code, but it is not ...
2
votes
2answers
36 views

Visualforce still sees the old controller variable value even after update

I have a simple controller and VisualForce page as written below: SampleCon.cls public with sharing class SampleCon { public Boolean buttonOneClicked {get; set;} public Boolean ...
1
vote
3answers
37 views

How can I change standard fields using jQuery in an embedded VF page?

I'm trying to have some code run when the Billing Address field (or sub-fields) of an Account is changed. This code will clean up the address, and then I want it to replace the contents of the Billing ...
1
vote
0answers
20 views

ETPush.registerForNotifications() method in JB4A SDK Cordova Plugin, callback not working

I've created a Github issue for this as well, find it here: https://github.com/ExactTarget/JB4A-SDK-CordovaPlugin/issues/3. The Github issue has images and code to review. For a quick summary, the ...
1
vote
1answer
39 views

Open popup windows from commandbutton

I'm trying to open a link in a new window but I can't. Here is my code: <apex:commandButton value="Open" onclick="window.open=('/apex/newRic?id={{item.id}}','_blank'); return false;"/> The ...
1
vote
2answers
26 views

How to Use Javascript Remoting Namespace From Managed Package

We have a managed package. In order to implement a sandbox / release management process for our application we have made all our code dynamic. We populate via a custom setting the name of the org's ...
0
votes
1answer
42 views

Javascript error on Button click

I am using one custom list button on one of the related list. But sometime when I click on this button I am getting the below error message: A problem with the OnClick javascript for this button ...
0
votes
0answers
22 views

Visualforce and Console Integration Toolkit results in Cross-Origin Framing error

I'm working on an App-level console component that has links in it. Those links should open new tabs (preferably in the console layout, but a new browser tab works as well) not on the Salesforce ...
1
vote
2answers
32 views

How to use the child objects in a related list after a soql call in Visual Force

My org has an account object with a related list of Contacts. I am querying for the Contacts from the Account and want to use the data on the Contact object. How can I access fields from the contact ...
3
votes
1answer
39 views

page navigation

i have a visualforce page where most of front end code is in HTML / CSS / JS. We are calling controller methods using javascript remoting. Is there any option other than ...
7
votes
2answers
94 views

Javascript remoting not hitting apex?

I'm trying to call an Apex function from a Visualforce page, but my Apex function isn't getting hit. What am I doing wrong? I have this ct_4_sf.RecordingTest.saveRecording( paths, ...
0
votes
1answer
33 views

Update newly created record's lookup field, using Id from just created lookup relationship

I need to create a new Case, populate the Case's lookup Project__c field with the Id of the Project which the Case has been created from, then populate the Program__c lookup field with the Id of the ...
2
votes
1answer
37 views

Hiding Rows pageblocktable

I have a page on which I'm adding rows to pageblocktable but not saving them. <apex:commandButton value="addrows" action="{!add}"/> <apex:pageBlockTable var="a" value="{!statuslist}" > ...
3
votes
1answer
66 views

sforce.connection.query is undefined

I'm trying to use the soap/apex toolkit for my organization and it keeps crashing when I try to query for objects. Javascript: <script ...
2
votes
2answers
70 views

Select and edit wrapper rows in pageBlockTable using Javascript

I have a custom visualforce page that displays a list of records in an apex pageblocktable, and have input fields in the cells to change field values of the records. I also have a column of checkboxes ...
-2
votes
0answers
21 views

How to use custom visualforce page as pop up in custom page

I am trying to open a custom page on click of a button in another custom page. i am trying below code, <apex:page standardcontroller="AM_Risk__c" extensions="popup"> <apex:form > ...
1
vote
3answers
43 views

Change focus away from date field in visual force page

I've tried using other code suggestions to change the focus to another field: document.getElementById('{!$Component.fOpportunity}').focus(); and changing the focus on load: <script>function ...
2
votes
0answers
23 views

Am I doing it right with this function sforce.interaction.searchAndScreenPop

We are new to SalesForce integration and we are up to integrate our company softphone with salesforce. We are using the sforce.interaction.searchAndGetScreenPopUrl for popping up the matched object. ...
3
votes
1answer
20 views

sforce.one.navigateToRelatedList Is not working

I am new in salesforce and I'm trying to make a call from a visualforce page inside salesforce1 (now called lightning, I think) to a Related List of contacts. My page show some options related to the ...
4
votes
1answer
88 views

Lightning Dynamic Controller

Finishing a drag and drop feature with a list but I came across a difficulty : Is it possible to add a controller action to a DOM element added dynamically ? Let's say I have a userController.js, in ...
2
votes
1answer
40 views

Unable to validate the date in VF page

I have two date fields (Start Date & End date) which i want to compare (End date should be greater than Start Date). For comparing i'm using Date.parse() of javascript. When the locale of my SF ...
3
votes
2answers
102 views

Javascript custom button throwing error - Undefined is not a function

I believe this is more due to my lack of knowledge about Javascript. But since i am working on salesforce, i thought i would post the question in this forum. There is a label SS_TLIfieldIDs, whose ...
4
votes
1answer
297 views

jQuery won't execute, even with .noConflict();

I've googled this extensively and still can't debug the issue - I'm setting var $j = jQuery.noConflict();, I've verified that the js and css files are loading properly on the page. Can anyone see what ...
1
vote
1answer
125 views

Lighting/Aura components: access to the component attributes

I'm trying to build a super simple app where I have a list of Item and I can select them, and see the selected in a second list. I have tried to setup a simple aura component: <aura:component ...