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

How to use conga workflow for a javascript button in conga composer solution

I am using conga composer solution. My button is javascript button(code).I want to automate the solution using conga workflow. Is it possible to automate the conga composer solution which uses ...
1
vote
2answers
19 views

navigator.geolocation.getCurrentPosition fails in Visualforce page

I ran into a rather bizarre issue today with the HTML5 Geolocation API. I'm working one a Visualforce page in Salesforce1 that grabs the user's current location and passes it up to an Apex Controller ...
-1
votes
0answers
3 views

Ajax callout from latest salesforce1 version not working

I am making an ajax callout to a google maps api(URL), from a VF page that is built for salesforce1 (iPad). The api I'm using is reverse geocoding. When I debugged, the $j.Ajax function was not ...
0
votes
0answers
8 views

Create PushTopic with SOAP/REST API in Node (jsforce)

According to Create Streaming PushTopic using REST API? I should be able to use the standard sobject API to create a PushTopic. However when I do so I get an error of The requested resource does ...
0
votes
1answer
16 views

ExactTarget SSJS: Landing Page - limiting amount of subscribers from a Subscribers.Retrieve() function?

I would like to limit the amount of subscribers retrieved with the following function: var myList = List.Init(listExternalKey); var subsArray = myList.Subscribers.Retrieve(); When used on a large ...
0
votes
1answer
15 views

Downloading all lead data through oAuth2 API

Completely new to the Salesforce API. I'd like to simply download all lead and contact information from a connected user's account - that is, anything which has an "Email" field. I've only briefly ...
0
votes
1answer
18 views

How Can I Perform DML Operations insert,update,delete records of an Object Using JS(client-side controller) and Apex(server-side controler)

I am very new in Salesforce, What i want is to have a complete explanation and code example in how to insert,update,delete multiple or single records of an object. Using Apex Server Side Controller ...
0
votes
1answer
35 views

SOQL query in a javascript button

On Contract object, i have a javascript button, which is supposed to pass the ID the related opportunity and account as a parameter to a page. How do i handle scenarios where SOQL query fails to ...
0
votes
1answer
23 views

ExactTarget SSJS Landing Page Updating User Initiated Send's Email Name?

I have the following function, which updates the User Initiated Send definition to a new Data Extension. I would like to know how to update the email name too for the User Initiated Send to target a ...
0
votes
0answers
11 views

Prevent mail from being send with a custom “send email” button

I've got this custom "send email" button in javascript. It checks if in n particular field a value is entered. If true, close the tabs and displays a view of cases. If false, only displays a message. ...
0
votes
0answers
18 views

How to call function along with method inside VisualForce component

I have a requirement which calls a method inside Visual force output label component. The same is working fine when i do it in HTML, but i am not sure how to call the same. <label ...
0
votes
2answers
24 views

ExactTarget SSJS Posting to next Landing Page

I am creating a Landing Page (Microsite to be specific) in ExactTarget and want the form parameters to be passed on to the next page for execution. Here is my code so far: <script ...
2
votes
0answers
19 views

How to swap 2 different component views in Lightning?

What is the best way to create a views in Lighting? And how can i navigate from one view to another? For Ex. I have 2 different components, c:ListInfo and c:Elementinfo, When i click one element of ...
0
votes
0answers
17 views

retrieving records with remote object in a loop failing

I have implemented AngularJS UI Grid in a Visual Force page and am trying to retrieve just over 500 records that meet the specified criteria. I am able to retrieve all records if I link the retrieve ...
0
votes
0answers
11 views

Replace Standard View with VF Page in Agent Console - Links not working

We wish to use the agent console as it has many benefits but to meet some requirements we need to replace the standard View Page with a Visualforce page but we used the Standard Controller and Apex ...
0
votes
0answers
15 views

Binding salesforce recod to java script in a html table

I have a task where in i have to assign a record to a td of a table, using java script and later i should be able to edit that record. Here is the code. [![<apex:page ...
2
votes
1answer
34 views

How to add Drag and Drop to Lightning Components?

Can anyone recommend a javascript library that allows drag and drop functionality (desktop and mobile) and works in a lightning component? Maybe point me to a post or better yet, provide some sample ...
0
votes
1answer
34 views

How to get page's static resource URL string using JavaScript code?

I want to get URL string of Salesforce static resource in JavaScript code. Something like: var url = getURL('static_resource_name') Is there a method to capture this from a page using JS?
1
vote
0answers
44 views
+50

How can I save the visibility state of SoftPhone

We can invoke sforce.interaction.setVisible - this is a standard CTI API method for expanding/collapsing SoftPhone in the Salesforce console. My question is - how can I detect that SoftPhone was ...
1
vote
3answers
49 views

get the label from apex:outputlabel tag using jQuery

I am actually trying to get the associated label of a apex input tag to do some javascript validations. Here are my tags below: <apex:outputlabel value="Account" for="NewContactAccountSelect" ...
1
vote
2answers
35 views

OnClick Javascript Button Not Working

I built a custom button that should run some JavaScript to update a field value if certain conditions are met. However, when I test the button, the else clause always runs. Any help on what is wrong ...
2
votes
2answers
43 views

Embedded VF Page with Javascript

I have an embedded Visualforce page that contains some Javascript code. The purpose of the code is to open a custom VF page once the Stage of an Opportunity reaches a certain point. I want this to ...
0
votes
2answers
31 views

JS Client Side Controller on Apex

How can i access every element value of my data.getReturnValue() because my c.getName is expectedly return a list of values. ({ myAction : function(component, event, helper) { var ...
0
votes
1answer
31 views

get picklist values of custom field into customButton javascript

Is it possible to populate the custom field picklist values into a custom button javascript code? Any pointers on how to use Schema.DescribeFieldResult class in javascript? I am actually working on a ...
2
votes
1answer
25 views

Clone record with its related list by clicking on custom button on that record ?

i have created one button on record top beside the clone button, when clicked, execute code that would make a new version record with the same name and append today's date on the end of the name to ...
2
votes
0answers
39 views

JSForce Login Issue

I am using Jforce to connect to my developer account using oAuth. But i am getting error. This XML file does not appear to have any style information associated with it. The document tree is shown ...
3
votes
1answer
40 views

Error while uploading content document through visualforce page with javascript to invoke Force.com REST API

I'm working on a visualforce page to give our portal users ability to upload Content Documents to Library. I'm using the solution in this article: http://www.allsalesforce.com/articles/share/756339/. ...
1
vote
1answer
15 views

How do redirect to a new page If check boxed is checked?

I want to redirect to a new page (pagebpc) when user hit Save and Review button if above check box is checked. Otherwise it should goes to view page as it is on the extension. How do you add code ...
1
vote
1answer
68 views

How to change color on One particular pageBlockSection?

I have Change the color using CSS. But i want change the color on one particular pageblocksection. How can i do that. I tried several methods, but does not work. Thanks <apex:pageBlockSection ...
1
vote
1answer
34 views

Where can i find the effective and deeper tutorial for Javascript (client side controller) in lightning [closed]

where can i see best tutorials and further explanation on Javascript (client side controller) in lightning mobile app development. Please help me i am very new in lightning and in salesforce.
0
votes
0answers
12 views

Localization - how to find all hardcoded string

I use Force.com IDE. I can scan for .cls and .resource for hardcoded strings. Can anyone recommend good RegExp to find them.
0
votes
2answers
22 views

Custom button - Java script error - missing ) after argument list

I have a created a custom button using Onclick Javascript action. I have a custom picklist field on Opportunity; I am just checking the value selected for this field on click of this button. If the ...
-1
votes
1answer
21 views

command button onclick

I have created a command button to create new contact from account object. The issue is, new contact page opens in separate tab. I want them to open in the same window.
0
votes
2answers
24 views

Stop Exact Target Web Collect success redirect

I have a web collect form that will be used in a light box modal for email capture. On the form submission I have a function to hide the div that contains the form and display the thank you div but it ...
0
votes
1answer
22 views

TableSorter disappears on ReRender

I have a table that has tablesorter on it. It works great. When I re-render the pageblock section that it is in, the table is then reloaded WITHOUT tableSorter. Something's up with my rerender. ...
1
vote
1answer
47 views

Need to use Http in url to make a REST API

I am trying to use http url from jquery and make an http request. Below is my sample code. I am getting error This request has been blocked; the content must be served over HTTPS. Also I am not ...
0
votes
1answer
34 views

Remove text after clicking in the textbox? [closed]

When you click on the textbox in order to make input data, I want to remove the previous text automatically for first time only?
1
vote
1answer
58 views

Javascript Code is not working!

Whenever I am writing a javascript code to check if the input text is taking an empty value, it doesn't work. Please check what is the problem with my code? Page Code
0
votes
2answers
28 views

How to get rid of the background space?

I have a custom VF page. when user select a value it will hide a page blco section. When it hide, it will make a empty back ground space as below, Before hide sections After Hide Sections Is ...
0
votes
1answer
11 views

Replacing a javascript list button with a visualforce page to run on group edition

I am less than a novice at this. I was able to piece together some javascript to enable a button on list view that would allow me to make selections of "students" and then mark them as "attended" by ...
2
votes
1answer
220 views

Is there any other way to get this done? [closed]

function myPicklistChanged(){ var myPicklistElement = document.getElementById('{!$Component.theForm.thePageBlock.thePageBlockSection.myPicklist}'); var myPicklistValue = ...
0
votes
2answers
31 views

How to execute the standard Onclick Javascript code from Detail Page Button in a Visualforce Page?

I've a custom button in the detail view of the object (type is onClick Javascript). I have a visualforce Page where I'm trying to replicate the same functionality done through the Onclick JS button in ...
1
vote
2answers
33 views

Possible to include different js files depending on the environment?

What's the best practice of including javascritps in salesforce? I want to minified and concat all js files used in our app. When we are developing we want to use js files as separte files but on ...
0
votes
1answer
36 views

I would like to use JS libraries, in an apex class context

We have wonderful JS libraries available, that does a lot many things.Is there anyway to leverage them in apex classes?. The context for me is to take advantage of XSL transformation files, use a JS ...
0
votes
1answer
19 views

Detailed Page Button Onclick Javascript Upsert

Hi I'm trying to create a custom button with Javascript OnClick function on an object that will use Upsert Functionality. Here's my Javascript Button Function: ...
2
votes
1answer
46 views

How Do I Work With Field Type Describe Information in Lightning Components?

Good evening everyone, I currently have a requirement where I need to create form fields dynamically from the Case object and render the same field types as on the Case object. I am trying to create ...
2
votes
1answer
31 views

Invalid component tried calling function [getElement], markup://aura:html [132:c]

I am using the $A.createComponents() method to dynamically insert different components into the body of my Lightning application. I am executing this function using a custom Lightning event where I am ...
0
votes
0answers
36 views

Validation Rule not shown on Standard Page Layout when Update from APEX

I am having issues showing a custom Validation Rule Exception on my Standard Case Page Layout. The scenario is that I have a custom button on the layout which calls a Webservice method in a custom ...
0
votes
0answers
29 views

how to hide menubar from a browser without refreshing a page using jquery

I need to hide the menubar from a browser onloading of a visualforce page(onclicking of a custom tab). By using window.open() in jquery we can hide menubar but the page will open in a new window. I ...
0
votes
2answers
24 views

Can I use Javascript to populate a custom auto number field only when a button is clicked?

I am very much a Salesforce newbie (I'll apologise in advance :) ), and need some help with some Javascript in our Professional Edition. I have created a custom auto number field in our Opportunites. ...