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

When we click on Button it Should generate a PDF FORM with the Ship to and Ship from details

Can anyone help me out with this requirement ?Any help is much appreciated. We do have two Buttons as GeneratePicklist and GenerateInvoice created using Execute Javascript ,ON a detail page button. ...
1
vote
1answer
43 views

Best way to make HTTP Requests

We are inserting data to a Data Extension in ExactTarget. Now on that same form submit action we have to POST that data to an Internal RESTful service (message format and responses are in JSON). Can ...
2
votes
1answer
27 views

How to show a selectlist in a visualforcepage populated with picklist values on a custom object using only javascript?

I am trying to show a selectlist in a visualforcepage populated with picklist values (from field say pickField__c) on a custom object (say object__c) using only javascript. I know how to achieve this ...
1
vote
1answer
38 views

Display in existing window without sidebar option for the javascript button

I have implemented the code in the JavaScript list button. the problem is when we click that button form the listview pop, the page is open with in that popup. so how to avoid that. see the below ...
0
votes
1answer
28 views

Difference between logging in into salesforce sandbox with and without consuming wsdl?

I am very new to Salesforce and it's API. I am having a sandbox org and with it I have url(dev sand box ), username, password, security token and last but not the least partner.wsdl My aim was to ...
0
votes
0answers
13 views

Accept header in request(Firefox)

I have some strange issue. I do GET request using Salesforce API like this: var xmlHttp = new XMLHttpRequest(); xmlHttp.onload = function () { } ; xmlHttp.open("GET", ...
0
votes
1answer
20 views

Open VF page for custom URL , Except PageReference

I am facing some duplicate parameter issue to open my URL using Pagereference, its automatically removing the rest of the parameters by keeping just one of it. variable MYURL : ...
8
votes
1answer
42 views

Passing data from Canvas App to VF page

I am struggling to understand how pass a value back to a VF page that contains a Canvas App. If I understand the documentation correctly I need to create a publish event in my app, so I have the ...
1
vote
0answers
25 views

Custom javascript is not allowed to run on Salesforce DOM [duplicate]

Recently i have created an app which uses custom JavaScript in sidebar home page component using custom links, The app works perfectly and i also uploaded it to appexchange as managed released package ...
1
vote
2answers
44 views

ExactTarget REST API - using javascript to get accessToken

With the clientId and clientSecret, is there a way to use JavaScript to get the accessToken through ajax?
1
vote
0answers
15 views

Can i IP restrict force.com pages rather than the whole site?

I haven't seen this documented anywhere so assuming this might not be doable. But lets say i have a huge force.com site and only want to have a few pages within it that are available to staff only. i ...
3
votes
4answers
82 views

Page does not redirect when using the action param

I am getting the error when am redirecting from the javascript it show the cross domain issue.
0
votes
0answers
33 views

Custom component not blocking page within IE

I am using a custom component that blocks the page and displays a fancy processing icon/text when any actions occur on my visual force page. My problem is that it does not seem to work with Internet ...
0
votes
1answer
9 views

want to add value in list from javascript

my controller have on list of id // list in controller List<Id> ids {get;set;} when i call javascript fuction i have to add id which i have passed to that function //fuction in vfp ...
5
votes
1answer
123 views
+100

Canvas Pad Signature on VF page..?

Hi i have created a VF page to capture signature uisng this link Link which i have used It working fine in individual vf page but when i add tr,td and table it is not working.I just don't know the ...
0
votes
0answers
27 views

Javascript alert error: URL No Longer Exists

I have a javascript button that throws an alert. The alert pops up fine but when I click OK to dismiss it, it give me a URL No Longer Exists error: The code otherwise works fine when the status is not ...
0
votes
2answers
31 views

Stop object detail page from refreshing at click of a button on embedded visualforce page

At the window.onload() event of a standard object detail page I am storing the time value in one of its fields. I have embedded a vf page along with this detail page. At the click of a button in the ...
0
votes
0answers
16 views

List View Multiple Case Owner Update

I have used the below piece of code to select multiple cases from list view and update case owner. But it does not update the owner when I am selecting multiple cases while it works when I select only ...
3
votes
0answers
27 views

How to load Chatter by Javascript

Question How could I load chatter (chatter:feedWithFollowers) dynamically (by javascript) in the browser? Motivation I'm working in a visualforce page that has the requirement of load as faster as ...
2
votes
1answer
37 views

Record type change through Javascript

{!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")} var orderObj = new sforce.SObject("Order__c"); var recType = sforce.connection.query("SELECT name,Id ...
2
votes
1answer
29 views

Javascript Remoting through HTML in salesforce

I want to call method of apex class in header part of customer portal which is a HTML page. Is it possible to access apex class method in such a way, If yes, then how to start on this?
0
votes
0answers
28 views

Add a button foreach row of a listview layout

In the search result layout of the Product2 module, I need to add a custom button for each row of the listview. The button will execute some javascript, do an ajax call and open a jquery ui dialog ...
1
vote
1answer
29 views

How to Add HTML / Javascript / Jquery “Slide Out” Tab (Globally)

I have a form that displays when a user selects a tab This form slides out when selected, and hides itself when selected again The action to display / hide is javascript / jquery I'd like this form ...
2
votes
3answers
94 views

Open a visualforce page from a managed package page: URL No Longer Exists

I am trying to open a normal visualforce page (that is NOT a part of the managed package) from a visualforce page that is IN managed package. This button I have on the visualforce page in manage ...
1
vote
0answers
23 views

Submit button does not enable on 'Submit Feedback' window, if user copy any text and paste it in the text box by mouse [closed]

Submit button does not enable on 'Submit Feedback' window, if user copy any text and paste it in the text box by mouse. I need to use ONCHANGE function in my code .how to use and where need to make ...
2
votes
1answer
37 views

Display VF custom components with user-defined order

We want to allow users to add/remove modules (custom components) from a VF page and set their order of display. We will use a dialog similar to the standard SF one (see image) on the front-end and ...
1
vote
1answer
20 views

Call variable from extension with JavaScript

This is my controller: public with sharing class MyController { public myObject__c myObj {get; set;} public String myObjectId; public Boolean one; public Boolean two; public ...
1
vote
1answer
66 views

How to pass String parameter to Javascript confirm() function

How could I pass to confirm() function the value of a String contained in the Controller of this VF page? <apex:page controller="TestJS" > <script language="javascript"> function ...
2
votes
2answers
61 views

JS/jQuery for Date manipulation on VF page

Have a very simple VF page that allows the end user to either set an expiration date, or choose the number of days until the expiration. What I wanted to do was update the other field when one was ...
0
votes
1answer
39 views

Assign rendered value using javascript [duplicate]

Folks, below is my code, <apex:inputtext value="{Account.Name}" rendered="True"/> <apex:commandbutton> am not using controller here, so i want to change the value to rendered="False" ...
0
votes
1answer
35 views

Trouble with Javascript Remoting

I'm trying to open an order as a Subtab in Service Console from a sidebar component based on the order number entered in a text box by the user. I am not receiving any error yet this doesn't work. ...
0
votes
1answer
24 views

Rendering <img> tag in table

I am attempting to render noImageURL when icon.image is null. For some reason, noImageURL is always rendered. It's not respecting the javascript if statement <td> <apex:image ...
1
vote
0answers
32 views

How to refresh record when user presses Cancel button in Salesforce1?

I'm writing a visualforce page as a custom object action for Salesforce1 app accessed on user's mobile devices (e.g. iPhone) and need to refresh the detail screen when the user clicks the Cancel ...
0
votes
1answer
51 views

Change color of custom button based on field value

I am trying to do the same thing as this question (set the color of a custom detail page button): Changing the color of a custom button but I want the set the value based on the value of a field in ...
2
votes
1answer
40 views

What does Sfdc.canvas() do?

I am going through Force.com Canvas Developer's Guide and I see the function Sfdc.canvas() used many places but it is not mentioned what it does exactly..Can someone give your input? For example, I ...
1
vote
2answers
64 views

Visualizing Many to Many relationship between Accounts (as Network-Structure not as Tree)

I have a many-to-many relationship between accounts. Somewhat like below: A B | | |_| C |____ | | | D E F I want to give the user a nice hierarchical view to see all the parents (including ...
0
votes
0answers
41 views

Javascript promise in visualforce page

will javascript promise work in VF page?. for me its not working while I am trying .then() function.Did anybody do anything like this? This is my code var pdf = null; PDFJS.disableWorker = true; ...
1
vote
2answers
72 views

Salesforce1 navigation - how to go to a Visualforce page?

I've done a bit of tinkering with the Salesforce1 warehouse example (tutorial 6 here). I've successfully adapted the code to work with my own custom object, and I've got records showing up as pins on ...
4
votes
1answer
29 views

Is there a way to delete record on Salesforce 1(Mobile)

Is there a way to delete a record on Salesforce 1 platform. I know there is a way navigate to sObject but if please someone could help to delete a record. Currently what i am doing to delete a record ...
1
vote
1answer
47 views

Display error or warning message without ApexPages using Global Component

I have a simple form , which has a output panel and pageMessage inside it . <apex:form> <apex:outputPanel id="errorPanel"> <apex:message id="msg" /> ...
1
vote
1answer
40 views

Is there any different calling JSON directly from visualforce page and javascript Static Resource?

I create one javascript file and call JSON from there.Before I use JSON, I use hardcode data and it works.But I try to load data using $JSON, somehow it does not works.Check the code below ...
1
vote
2answers
86 views

Change field visibility based on Opportunity picklist value

When i select stage picklist value as "Closed Lost" in Opportunity, then i want show text fields. By-default these text fields will be hide. I tried so many ways but i didn't get. tried using ...
1
vote
1answer
39 views

Unable parse JSON String using Javascript

I am facing issue parsing JSON String on the front-end. The parameter result represents a String function handleresult (result,event){ var newResult = JSON.stringify(result); var temp = ...
1
vote
0answers
29 views

Conditional Custom Buttons

I was just asked to combine 2 buttons that open 2 separate visual force pages. So my idea was to create one button(obviously). Is it possible to after that ask the user which record they want to ...
6
votes
2answers
85 views

Javascript Button Issue

Full .js button code: {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} {!REQUIRESCRIPT('/resource/' & LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(NOW()),':',''),'-',''),' ',''),10) & ...
1
vote
0answers
43 views

Javascript Error : “cannot read property of Id undefined”

I have a custom button which is using the javascript code given below. I am getting the error that it is not able to get the Id. Please suggest where am in going wrong. "cannot read property of Id ...
4
votes
3answers
81 views

How to open a URL in a new tab in Salesforce1

I am currently facing an issue in opening an url in a new tab on Salesforce 1 (Mobile) platform. The sforce.one.navigateTo() method does not have any option to open url in a new tab. Any suggestions ...
1
vote
0answers
24 views

How to deploy a dynamic web project war file in heroku?

I am trying to deploy a war file in Heroku. Using Eclipse IDE, I developed a Dynamic Web Project which having basic HTML + JavaScript + j2ee files and the application is working well in my server ...
3
votes
1answer
44 views

google map not showing on Visualforce page

I am trying a very simple exercise to display a google map on visualforce page. But nothing is showing up. Below is my page code - <apex:page controller="SampleLocation"> <head> ...
2
votes
1answer
24 views

Visualforce how to onSubmit via controller return error or true

I currently have a Visualforce page where a User can tick selection boxes in order to edit multiple License Voucher # Object fields as shown below. I would like to perform a field check for empty ...