Tagged Questions

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

Accessing a map with dynamic key (a javascript string valiable )

I am in a situation where i have a map in my Apex code and i want to access its data with a key that i am passing through my javascript function. I tried with a couple of things that include directly ...
0
votes
0answers
37 views

Javascript button issue not updating the checkbox

This update is not happening: sforce.connection.update([quot]); I want show alert message for one profile when date is not equal to today . but update has to happen every time. Thanks in advance ...
0
votes
1answer
14 views

How can I store complex form in cache memory or local server

I have a requirement to store data some where other than the database. My form contains 3 Object records. Basically in constructor first record is displaying I am entering data into that after that I ...
1
vote
0answers
16 views

Show major tick on google meter gauge chart with amount as $1k , $2.5 M

I am creating visualforce page which contains a google meter gauge chart as shown above. I am showing trying to show amount in gauge but as you know representation of amount in 1K , 1M ,1B will give ...
-4
votes
0answers
19 views

I need to find a developer that can create a web to lead from a email and load info into leads [on hold]

I had this working for 2 year but the fields have changed on the 3rd party email. Yes they added a reply to field and changed the email it was sending my information from. This used a Google Engine ...
0
votes
1answer
28 views

Reload a whole page after clicking a follow button on visualforce page

Can anyone tell me how to reload or refresh a whole page after clicking a follow button on Visualforce Page? My VFP as follows; <script> funtion reload(){ ...
2
votes
1answer
25 views

JavaScript button that deletes child object

I'm new to JavaScript and I have a requirement for a button that will delete a child object based on a query. there are 2 objects, event and enrollment. enrollment has a lookup against event. We need ...
2
votes
2answers
32 views

Lookup Populate with Javascript

Greetings and thanks in Advance! Have a visualforce page that allows a user to create a related lookup object. <apex:inputField id="newCompetitorAccount" ...
0
votes
1answer
36 views

On click Javscript on Custom Button

I have a related list ( custom object ) on Opportunity record. When I click on New button of the custom object from the related list of the opportunity , I want to check the value of some field on ...
1
vote
1answer
18 views

How to create a 100% fully custom branded Community?

I want to create a 100% fully custom branded Community like the one shown in this demo https://developer.salesforce.com/blogs/developer-relations/2013/10/communities-plus-site-dot-com.html The ...
0
votes
1answer
31 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
72 views

Should I add Sandbox support to VFFiddle? [closed]

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
30 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
14 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?
2
votes
0answers
48 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
34 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
35 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
48 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
40 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
29 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
19 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
45 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
21 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
25 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
17 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
41 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
34 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
90 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
35 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
49 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
35 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
34 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
39 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
53 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
49 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
42 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
61 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
42 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
53 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
42 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
42 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
33 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
194 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
40 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
64 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
24 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
37 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
87 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
47 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 ...