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

2
votes
1answer
19 views

How to get the Id from the standard pop up window?

I have a page with Contact look up icon and when clicked on it shows up the standard salesforce lookup pop up window. When this happens, I see that the below fields are auto-generated: <input ...
0
votes
0answers
8 views

Create Multiple large attachment records for a custom object

I have a piece of code where I need to implement multiple large attachment records upload capability for a custom object(Call2_vod__c) record as it's parentid. Can someone help me here please? Page: ...
0
votes
0answers
8 views

Google Maps Places Searches javascript?

i have a Custom Object called Property. I have the maps working but I think im missing the java script to run Place services. Do you guys know which javascript to run? Is it one of these? ...
0
votes
0answers
20 views

How to Update Salesforce Objects from SOAP API or Server-Side JavaScript in ExactTarget

Following the importing of a flat file from the ExactTarget FTP on step one in an automation, on step two of the automation, we are using a server-side javascript activity to update Salesforce Objects ...
0
votes
0answers
13 views

Getting geolocation in login flow

I am using the login flow which has been released as part of Winter'15 release. I would like to pass the geolocation of the logged in person (using javascript HTML5 Geolocation API) to visual flow as ...
0
votes
0answers
24 views

Salesforce Javascript, Several If statements; unexpected token IF

Hello stackexchange community. I'm trying to create a custom button in Salesforce that will open an email template and fill in the recipients list depending on the several Account fields. Here's the ...
0
votes
1answer
11 views

Using Custom Compact layout on Visualforce Page

I have a visual force page displaying lots of information in a report of sorts. To enchance the user experience I have added some code to load the standard compact layout for records to provide some ...
0
votes
0answers
11 views

How to retrieve the result by using beacon url?

I wrote the small javascript code in visualforce page by using boomerang tool. It shows the result in same page. I want to store the result and show that result in any file. can any one tell me how to ...
0
votes
1answer
17 views

To populate field with same Label

Hello All i have fields those are coming from different different field set(they can have common fields) and i want to have a feature to copy the values of fields to the similar fields(common fields) ...
2
votes
3answers
54 views

Access apex Map in Javascript

I'm trying to access a the apex Map named "resultsMap" with javascript, I would like to get contact last name using contact id. public class AccessMapJS { public Map<ID, Contact> ...
1
vote
1answer
19 views

URLFOR($Action… returns URL No Longer Exists from $Resource; works fine outside

Thanks to Marty C., I am able to create links in VF (with the JS defined in the page) that work in the Service Console (okay - still working on mailto:), and I want to move them to a Static Resource. ...
0
votes
0answers
15 views

how to use JiffyStubs.js?

can anyone tell me how to use JiffyStubs.js in salesforce organization? From where can i download this file. where can i store this file. how to use this file in vf pages. how to check the ...
0
votes
1answer
29 views

Button for email template and recipient

I have created a custom button(like send an email function) to define the email template and the recipient email address. Behavior is set to execute Java, content source is OnClick Java. Code is ` ...
1
vote
1answer
22 views

How to select a row in pageblock on click?

I have a pageblock table where in I must be able to select one or multiple rows on clicking the row itself. On clicking a button, these rows must be displayed below the table in another table to show ...
0
votes
1answer
25 views

Visualforce onClick Javascript Display

I have an issue with Javascript prompt display. I'm trying to check if user is Guest from the variable {!type} which i get from my Apex controller on my OnClick event. However, the Javascript message ...
0
votes
0answers
24 views

How to move next and previous in jquery modal window [closed]

I have to move the Images ( Previous and Next) on button click on the modal window. Can someone suggest how can I achieve this? ...
0
votes
0answers
32 views

How to enable disabled radio buttons using javascript?

Ok, so this code initially has radio buttons set to disable. I have a second button which calls the javascript function. Somehow it doesn't work. Ive tried Jquery and it still wont enable. Is there ...
0
votes
1answer
20 views

how to open the approval/rejection page w/ custom javascript button

How to I open the approval/rejection page for a record with a javascript button? {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} ...
1
vote
1answer
12 views

Campaign Member Javascript Button Help

I have created a custom conversion process that uses Visualforce. There is a custom button on the Lead page for conversion. I want that same button on Campaign Members that need to be converted, but ...
1
vote
1answer
39 views

Can VF list links behave as related list links in Service Console?

I've just used openSubtab() successfully in a custom button to load a record in a new subtab in the Service Console, using the result[0].id returned from sforce.connection.create([record]). I've ...
0
votes
1answer
37 views

JavaScript Button to create a User from the Case object

I am creating a JavaScript button on the 'Case' object and if the user selects the button it will create a New User. I'm able to map most of the fields from the Case to the User page just fine but for ...
1
vote
1answer
21 views

How to splt pdf file in javascript

I want to split selected pdf file. Like i have a pdf file having 1o page then i want to split pdf file in 10 pdf having one page each pdf file. I will select this pdf file using input type=file. ...
0
votes
0answers
30 views

how to apply filter on chatter REST request to receive only images

I am trying to get feed items of type image only. Using following request I will get all type of feed items and then I need to filter in the code. Is there any way to filter feed in request only? ...
0
votes
0answers
23 views

Not able to use ActionSupport for date type of inputtext

I am trying to rerender particular section on change of date. however I am facing problem to rerender section on onchange event. I tried using onchange, onclick, onmouseout but this doesn't work as ...
0
votes
0answers
7 views

Built a mashup between Salesforce and the SIMILE Timeline

I want to built a mashup between Salesforce and the SIMILE Timeline. The Simile Timeline is a javascript widget that's available as open source to create interactive timelines. And want to use that ...
0
votes
1answer
29 views

Assign Javascript variable value to Ampscript

I am using code below to get cookie and assign it to ampscript variable @user function checkCookie() { var user = getCookie("email"); if (user != "") { alert("Checking cookie: " + ...
0
votes
0answers
10 views

How do I use describelayout() to get case picklist values and dependencies?

We have custom picklists for product, issue, resolution etc on our cases. These fields have a lot of dependencies on one another (issue category, issue subcategory). I'm wondering if anyone has an ...
0
votes
1answer
26 views

Delete cookie in Javascript

I would like to delete my cookie in visualforce using Javascript based on the delid. This is what I've tried so far: <script> function deletecook() { date = new Date(); ...
0
votes
2answers
26 views

Auto populating the "Name: Field before record creation

I created a custom object and I have a field that is required called "Name". I am trying to fill in the record with anything (TBD) is fine however I cant get workflow to populate the field before ...
0
votes
1answer
21 views

need Scroll Table with Fixed Header

Please I need a help: My problem that: I need to display a table and when I scrolling it the header was fixed. That’s my code : VF : <apex:outputPanel layout="block" id="inputParameters" ...
0
votes
2answers
28 views

HTTP Callout returns HTML - can I load it into a new browser window?

I'm currently making a callout to a third party api from some Apex code triggered by a javascript button, sending info to fill out a web form on their end. The desired functionality is that the button ...
0
votes
0answers
33 views

Javascript closeSubtab() (or other) functions not firing on page load

I have a button srcUp('apex/NxConsoleCaseCreation?ci={!Contact.Id}') on the Contact detail that creates a new Case record using a VF controller and the associated VF page's action method. The ...
2
votes
1answer
24 views

How to get the prefix of the object Id in Java script button

I know to get the prefix of object id in apex using the Schema. But I want to know the way to get the prefix of the object Id in Java Script custom List view button. Thanks, Suresh.
0
votes
0answers
11 views

Visualforce Range Slider

I have wrote some code for range slider in VF and I have little bit knowledge in JS. My question is 1. I want to change step based on some criteria for min value and max values. In my code step is ...
2
votes
2answers
52 views

Window.Close browsers issues

I have a standard Lead page that opens a popup window when a list button is clicked. When the popup is closed, I need the parent window to be refreshed. My js code: if(...){... } else{ ...
0
votes
1answer
37 views

how to disable a multiselect picklist field (inputField) using javascript?

I need to disable a multi select picklist field (inputField) in the visualforce page on page load and enable it on button click. I tried using javascript. It worked fine for other inputFields but did ...
0
votes
2answers
27 views

Disabling the custom Button

I created a custom button detail page button and using that in my detail page. That button executes JavaScript code.I want to deactivate that button once it is clicked. Can we deactivate the custom ...
0
votes
1answer
129 views

End of Sidebar workarounds via Messages & Alerts and Custom Links finally in Winter'16?

There was an update in a partner alert about the HTML home page components on February 27th. Now two sentences has been added to this paragraph: With the Summer '15 release*, Salesforce will no ...
1
vote
1answer
26 views

Bolding specific text in table with list of records

I have been working on creating a custom advanced visualforce search page for my users. It's currently working well, but I was wondering if there was a way to bold specific words that get output into ...
6
votes
1answer
107 views

Using static resources in OnClick Javascript buttons after “Serve Static Resources from force.com domain” critical update

We're using list view and details OnClick Javascript buttons which reference custom js ans css files stored in static resources and containing some shared logic/styles. The sample code below ...
3
votes
1answer
29 views

Add a Javascript to my Home Page Components

I'm really new with Salesforce but I'm trying to add a Javascript to my Home Page components and I develop the Javascript which inject some values in the address (like Post code according with what ...
0
votes
1answer
37 views

Automatically show the Choose file option/button when a checkbox is selected

Suppose I have one checkbox and one inputfile (Choose File). The idea is whenever I select/check the checkbox (checkbox value=true) then the ChooseFile (inputfile) will be automatically displayed in ...
0
votes
0answers
30 views

JavaScript on custom button

I am having a trouble while running a JS on my button . I have a button name Make Available on my detail page and there is a pick list name status> which is by-default pending. Whenever user click ...
2
votes
2answers
88 views

Inline editing doesn't update last edited value without control loosing focus first

When I double click on the output field and try to change the field value. The updated value is not getting saved when i directly click on save button. Instead, In order to save record I need to ...
4
votes
1answer
97 views

Lightning: is direct API access on the roadmap?

I'm programming developer tools and an IDE. Right now, my code is based on Visualforce and JavaScript. As described here, I would like to convert most of my API callouts form APEX to JavaScript. Also ...
2
votes
1answer
41 views

Is there a Javascript Wrapper Salesforce Metadata API?

I'm using Andrew Fawcett's legendary Apex Wrapper Salesforce Metadata API in several projects. It perfectly works and provides a new dimension of APEX programming. Now there are situations where it ...
0
votes
0answers
11 views

Use {!JSEncode(VALUE)} in Static Resource

I want to use JSEncode function in my Static Resource, as I would not be able to use it on my page due to some restrictions. Is there a JavaScript equiavalent function? Or, can we find it somewhere ...
1
vote
2answers
51 views

DatePicker Issue

I have two text field: One normal text field that accepts numbers. <apex:inputField value="{!FinancialAssCont.Down_Payment__c}" styleClass="form-control downpaymentAmount" ...
0
votes
1answer
27 views

Get values from child page

I am creating an custom vf page for opportunity. I am having 5 input text box which has an lookup. on click of this lookup an pop up should get displayed(i.e custon child page) and should select ...
3
votes
1answer
121 views

Best Practice - Lightning JS (Code reuse, testing frameworks and IDE support)

I asked about the difference between controller and helper and it prompted me to ask another, more specific set of questions: What is the best way to reuse JavaScript code across Lightning ...