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

JavaScript executing before controller method finishes

So I have an action function which calls an apex controller method. I call this action function within some javascript at the top of my page and after that call I want to send some information to ...
7
votes
1answer
49 views

Should I add Sandbox support to VFFiddle? [on hold]

I'm working on some updates to to VF Fiddle. I want to gauge the interest in running fiddles in sandbox and get some feedback on the security concerns. Because fiddles are not reviewed they could ...
1
vote
0answers
10 views

Critical Update “Serve Static Resources from the Visualforce Domain” still serves resources via Salesforce Domain

After activating the Critical Update, I checked a couple of my orgs using Managed Packages which provide resources used on buttons and scripts in the Standard Salesforce domain. It surprised me that ...
0
votes
0answers
12 views

can i make a ajax post from a salesforce button

I have a button on salesforce record page which calls a url with parameters from a post call is made . Is there a way i can make post call from salesforce button directly?
1
vote
0answers
33 views

Javascript in custom button

I create a custom button with the send email features, so if the margin<0.4) show alert, than can't send the email. I create the button but doesn't work, Somebody can help me? Thanks a lot. ...
1
vote
2answers
31 views

Add transparent color code in apex tag

Hi in my meter gauge I have to add a transparent white color <apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953, #FFFFFF" tips="true" /> i.e. I need: colorSet= "#78c953, ...
1
vote
1answer
26 views

Javascript to delete rows from a queue

I have javascript on my visualforce page that adds a delete button beside each new case added to the queue but cannot get this button to actually delete these items. This is the code I have so far. ...
0
votes
1answer
34 views

Look up contact by external ID in Live Agent's window

This question is a follow-on to my previous question: LiveAgent Chat with External ID I am trying to pass in a Contact external ID from a non-Salesforce web page and use that to look up the Contact ...
2
votes
0answers
33 views

Get print of visualforce page containing different charts

I am creating a dynamic dashboard using Vf Charts. I am having about 18 different charts on a single visual force page. I have added a print button on the visualforce page to print all the charts on ...
0
votes
1answer
25 views

Display different images depending on a field's value

I have a formula field on Lead (Profile__c) which gets updated with different values depending on the another field (Weight__c) given. Below is the formula: IF (AND(Weight__c> 0, Weight__c <= ...
2
votes
1answer
18 views

reRendering loses javascript manipilations

I have a snippet of javascript which adds classes elements on the page once loaded, I have noticed that while reRendering the page these js changes are lost. How can I have them reapplied/intact on ...
0
votes
2answers
43 views

How to get a value from an Apex class into JavaScript in a Visualforce page [duplicate]

I want to get the value from Apex class to my javascript. I have a value from my apex class and the value I am able to display in my VF page but not able to pass this value to my script. How can I get ...
0
votes
1answer
18 views

Confirmation Dialog to Run Trigger on a picklist.

I have a pick-list on accounts that when a certain stage is selected and saved, all oops are cancelled (via trigger). Is there a way to add a confirmation after selecting the stage from the pick-list ...
2
votes
1answer
19 views

How to achieve Show a field in page layout Based on Status

I would like to Show a field in page layout Based on Status. "Approved date"(Date data type) field to track when Status is set to "Yes" or "Rejected Date" field to track when Status is set to ...
0
votes
0answers
15 views

Get ListViewId for navigateToList() method salesforce1

I have Delete Button, so in case the user is using salesforce1 platform, i want the user to navigate to QuoteList page after the quote has been deleted from the Detail page. For doing this, there is a ...
2
votes
1answer
34 views

Set value of a dynamic picklist on VF page load

I have overridden the new Opportunity page with a Visualforce page, which means there are 3 main routes for the Opportunity to be created: From an Account page From a Contact page From an ...
2
votes
1answer
30 views

getting the query result in json format when working with sforce.connection.query

I have this javascript code in a VF page where I'm trying to fetch records from the DB. I'm getting back an xml format but I need it as a json format. Is there a way to get the result records in json ...
2
votes
1answer
86 views

Creating a text file using javascript

I'm trying to store a long JSON string as a Document. The problem is that when I download this doc and open it I see unreadable text with signs and strange characters. looks like I opened a binary ...
0
votes
0answers
30 views

Need to add alert message and page open simultaneously?

Javascript code for button: {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} var connection = sforce.connection; var qid="{!Quote__c.Id}"; var quot= new sforce.SObject("Quote__c"); ...
1
vote
1answer
41 views

VF Page: Best way to avoid datepicker focus on load?

I have two date fields on my Visualforce page and on occasions the datepicker/calendar pops up upon page load. I understand one way to prevent this is to use javascript as suggested below: <input ...
3
votes
1answer
32 views

Javascript get field ids for URL

I'm trying to replicate the "New" button on a related list. The only difference is that, if a record of that type already exists, then it simple returns an alert. Otherwise the "New" activity should ...
0
votes
1answer
33 views

How to get the value of a checkbox in VisualForce page

I have the below code in a VF page and a simple javascript function to get the value of the checkbox. However, irrespective of whether the checkbox is checked or not I get a value of "on". How do I ...
0
votes
0answers
33 views

VisualForce Page opens in new tab in salesforce1 and refresh is not working

I have this page embedded in my account layout: <apex:page standardController="Account" extensions="ClientRetriever"> <script type="text/javascript"> ...
2
votes
2answers
50 views

Invoking Javascript on VF Page from Static Resource

we have a Javascript sheet saved as a static resource and one of our developers is attempting to invoke a function from it in our visualforce page. In our visualforce page, we are using: ...
1
vote
1answer
40 views

LiveAgent Chat with External ID

I am integrating a third-party site with Salesforce LiveAgent to include passing in an external ID for a Contact record. Following the instructions at this site I have a simple web page set up ...
2
votes
0answers
41 views

VisualForce alternatives? What are people using for BIG projects?

Are people using VF for large, complex front ends? or are people primarily using other front end frameworks and just hitting Force.com for backend data storage, authentication, etc?
1
vote
1answer
48 views

Clear Multi Picklist Value using JQuery

I want to clear multi picklist value when it is disabled. I'm using like this but it's not working. <apex:page standardController="Contact"> <script ...
0
votes
0answers
38 views

pop up window abruptly closes when enter key is pressed on a text or date field

What do I have? I have a VF page that serves as a pop up window. This page opens up using window.open on the onClick attribute of a VF button. Purpose of this VF page Data entry of a lot of details ...
1
vote
2answers
51 views

JSforce authentication popup dialog issue

So I am working with JSforce lib and I am loging into SFDC by using this code which works perfectly but the problem is when the popup opens and get the access token in the URL nothing happens next the ...
4
votes
1answer
28 views

Download the content of a number of attachments via javascript

I have problem on downloading the content of some attachment files, via JavaScript, on my VisualForce Page. To be specific, I think I need a way to pass the content of the attachment in the ...
2
votes
1answer
31 views

How to get Anchor tag (which works with JS function call) to work using rightClick > open in new tab?

I'm using an anchor tag <a href="#" onClick="javascriptMethod();">asdasdasd</a> This javascript function dynamically decides on the page to open. Works all right on click. But when I right ...
0
votes
1answer
31 views

Show <apex:pageMessages> in javascript

How to show apex:pageMessages in javascript? Here is my code in vf page <apex:form id="frm"> <apex:pageBlock id="pb1"> <div ...
6
votes
1answer
144 views

XMLHttpRequest cannot load, No 'Access-Control-Allow-Origin' is present

We have a customer who is having a problem with the embedded visualforce page for their custom objects that include our component. The issue is with the Cirrus_Files_Dog visualforce page. The page is ...
1
vote
1answer
38 views

Need help w/ FuelUX “Scheduler” Javascript control

Here's the link to the documentation: http://exacttarget.github.io/fuelux/javascript.html#scheduler If I use the "data-initialize" attribute (see below), is there a way to still use Javascript to ...
0
votes
3answers
59 views

Disable a multipicklist depending on other picklist value

I want to disable a multipicklist field, depending on other picklist field value. if picklist__c is 'Inactive', then disable multipicklist__c. I used javascript but no luck. ...
0
votes
2answers
23 views

Can I check for a Custom Setting in an Angular ng-show directive?

I'm working on an Angular project within Salesforce, I have a custom setting which determines whether or not certain elements on my page display or not, <apex:outputLink ...
1
vote
1answer
34 views

Reference Static Resources or Documents with direct link and no login to system

Is there a way to access static resources or documents without being logged into the system. So if the file in not marked as "Internal Use Only", can I provide a direct link to it for others to access ...
-1
votes
0answers
17 views

How to load the output panels step by step in page loads

I have 3 outputpanels i want to execute the 3 output panels step by step when page loads, i want to show firstoutput panel, after page load completes second and third panel below is my code but it ...
0
votes
1answer
57 views

Fetch and display images stored in Rich Text field in a Visualforce page

I have a VF page and a custom controller, Controller to Query for the Articles and a Visualforce page to display the details related to that article, such as Title, Summary, Custom Fields (Rich Text). ...
0
votes
0answers
44 views

Cross Origin Request

I am using SFcore.connection.query method in javascript to query on FeedItem object. Query is running fine. However, after a limit of 35 MB, I am getting an error message.While debugginfg the issue, I ...
1
vote
1answer
38 views

Is it possible to set Amazon S3 CORS programmatically?

Is it possible to set Amazon S3 CORS programmatically (from Apex)? I'm coming up with a salesforce (force.com) app that allows to upload files from salesforce to amazon s3 (using drag and drop ...
1
vote
1answer
36 views

JavaScript OnClick Custom Button in Console

All - I am trying to create a custom button for the Sales console. This button is calling a specific E-Mail Template and prepopulating data. I know how to leverage the JavaScript for Custom Buttons ...
1
vote
1answer
61 views

Uncheck checkbox using javascript after JS onload

I am pasting a complete code for anyone reference if they like to resolve it.(Just incase they want to know what i could be missing.) NOTE: CaseOwnerChanged__c = Checkbox field type <apex:page ...
2
votes
1answer
48 views

Is it possible edit Geolocation custom field in Inline mode?

I have custom field Location of Geolocation type for standard objects (Account, Contract, Lead etc). For example, I want this field to be editable. On Edit Layout it is editable by default. But ...
0
votes
1answer
15 views

Dynamic Id on $Action.Account.View

I try to do something like this : <script type="text/javascript"> var id = myObject.customId__c; var myLink = '<apex:outputLink value="{!URLFOR($Action.Contact.View, ...
0
votes
2answers
39 views

how to get current system network IPv4 Address Using Apex in Salesforce?

In my computer start<> Controlpanel<> NetworkAccoess<> details <>IPv4 Address Connection-specific DNS Suffix: Description: Qualcomm Atheros AG8161/8165 PCI-E Gigabit Ethernet Controller ...
3
votes
2answers
85 views

How to prevent SF1 from re-writing hrefs?

I'm working on an JS on VF app that utilizes hashtag routing ie: https://c.na17.visual.force.com/apex/ionicOne#app/account/001o0000006w1pBAAQ When I Access my app via Visualforce: ie: /apex/ionicOne ...
1
vote
1answer
50 views

Do not VisualForce JavaScript onChange and actionSupport work together?

It seems like you can't use VisualForce JavaScript onChange and actionSupport together, because if you use onChange property on inputField then actionSupport onChange wouldn't work. There is here my ...
1
vote
2answers
58 views

Grabbing Parameters From the Salesforce URL using a standard page custom button

im trying to create a Back button on a standard page which will take the user back to a custom visual force page with multiple parameters in the URL, i have brought through the two values i require ...
0
votes
1answer
22 views

Salesforce custom button javascript escaping error

I've noticed that SFDC is not properly escaping some characters in the code it generates to be eval'd when using javascript custom buttons. For instance, say I have an object with a field that ...