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

5
votes
1answer
25 views

ORs and ANDs in the retrieve function of Visualforce Remote Objects

Related: OR/AND condition for complex criteria with remote objects Background The retrieve query format allows the use of or and and clauses to create complex queries. The relevant documentation is ...
0
votes
2answers
27 views

Field Update on Button click Using JavaScript

My field is not getting updated for Owner Id on Case Object {!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")} var caseObj = new sforce.SObject("Case"); ...
7
votes
1answer
69 views

Access MetadataAPI via JavaScript

We created an 100% native Salesforce IDE as a Managed Package which is using ToolingAPI and MetadataAPI via APEX. This works fine. But there is one thing which really bothers people after the ...
-1
votes
0answers
23 views

How do I enable a particular section on selecting a value from pick-list?

how do i enable a particular section on selecting a value from pick-list? using java script i am new in developing, i got an urgent requirement from client. public with sharing class Custom { ...
0
votes
0answers
15 views

Dynamic map displays list of account addresses in a simple map in a vf page [on hold]

Dynamic google map that displays list of account addresses in a simple map in a vf page which must support zooming feature. step1: I need to display all records in a vf page by address specified in ...
3
votes
0answers
19 views

smartsync offline query

I have a backbone collection model like this: // The TaskCollection Model app.models.TaskCollection = Force.SObjectCollection.extend({ model: app.models.Task, fieldlist: ["Id", "Subject", "Status", ...
0
votes
0answers
18 views

Populating Lookup using Javascript

I built a custom object (Project) with an Account and Opportunity lookup then a detail button in the Opportunity object that creates a Project from it and copies some of the Opp details. I'm having ...
3
votes
1answer
19 views

Javascript button Date to Date Nan error

I am having an issue with a button that converts a Deal Object to an Opportunity Object. The field I am using from Deal is '{!Deal_Registration__c.Close_Date__c}' which in this format returns ...
7
votes
3answers
599 views

Why people still need javascript sidebar workarounds and what alternatives could be preferred?

Since it seems to me, that a lot of people still need sidebar workarounds, I would be interested to learn about the use-cases, experienced challenges and (most important) possible strategies to avoid ...
1
vote
1answer
48 views

Display sum of values dynamically entered by users in a table column

Requirement is display a table should have ability to add new row and also need to display dynamic sum of each column when user enters value with in a row column. Something like the below table. How ...
3
votes
0answers
22 views

Load VF login form data on startup

I have VF Login page for portal user where I am trying to save few fields which includes inputtext and picklist so when user close the browser and come back again then the same information appear back ...
0
votes
0answers
18 views

How to values passing one form to another form on same visualforce page

We have created a page in that page we are using two apex:form. In form1 we have a verification section. We have to select the account look up and need to give related contact email address and then ...
1
vote
1answer
24 views

Get Selected Lookup id in Javascript issue

I have created a Vf page.In that VF page I have look up field for Account look up.My requirement is to get the look up id and pass the id to text box.I have tried the below code but it is not working ...
1
vote
1answer
27 views

execute javascript function whenever the condition in onclick attribute is true

So I don't want to add another code in my controller class. Is there a way I can accomplish this? I have an actionFunction named makeEditable <apex:actionFunction name="makeEditable" ...
2
votes
0answers
33 views

Error Generating Quote PDF

I am trying to generate QuotePDF on click of a JS button. I have not created any VF Page for the PDF and am trying to use the standard functionality. My code to generate PDF is:- PageReference pr = ...
0
votes
1answer
55 views

URL Hacking to prepopulate custom field in a popup

I have a popup that shows up when a custom button is clicked on a standard Salesforce page. When the button is clicked a Javascript is executed that opens the popup. The Javascript code shows my VF ...
0
votes
0answers
18 views

Javascript Input items and sum [closed]

I have to make a javascript doc where you enter billing details for three items and the total should pop out after clciking a button in a simple bill statement page that has two rows three columns ...
1
vote
2answers
37 views

pass parameter to custom label from javascript

I have a custom label that prints 'Enter at least 2 characters to search.' I would like to make the 2 a parameter that gets passed in so that the user can adjust it at their discretion. So the label ...
1
vote
1answer
32 views

Not changing Javascript variable value after rerendering

i created a script tag in visualforce <apex:page controller="ActionFunctionDemoController"> <apex:form > <apex:actionFunction name="action1" action="{!action1}" ...
0
votes
0answers
29 views

Home component JS to hide a button

So I wanted to hide the "save & new" button on case edit page layout. So I added a home component, Narrow Left column and in the body click on show html. < !--------Wait for the loading of ...
1
vote
0answers
23 views

How can we re-size the attachmant file in salesforce

I am working on salesforce1 app where I have a apex:inputfile tag, on which I have added attribute capture, for capture image using mobile camera (capture=camera). This is working fine with both ...
1
vote
1answer
32 views

<Apex:param> not passing value with Onclick function in PgBlockTable

Am nw to salesforce & Need you assistance. I will explain my scenario. I use 2 custom objects Volume and Quality. I have done all part. I have trouble in onClick() function.In a pageblocktable, I ...
2
votes
2answers
239 views

Popping Up Javascript Alert Box on Standard Page Layout

Is it possible to invoke javascript on a Standard Page Layout ? I know we can write Javascript for Custom Button on a standard page layout but can we write javascript for object events (like delete ...
1
vote
0answers
40 views

Hierarchical tree view in VF with custom object

I have a custom object that shows a relationship between a contact or account with another contact or account. I would like to display these custom objects in a hierarchical tree display. My VF page ...
0
votes
1answer
50 views

calculation from input field using visualforce page

The TotalValue__c field being calculated on the fly/client side while the user is entering the field values and and so that they don’t have to do the calculation themselves. TotalValue__c = ...
3
votes
1answer
34 views

Changing the value of particular pageblock on click using jquery/jscript

I have an scenario where pageblocks in visualforce are dynamically rendered based on the list size. In each page block i am performing some calculations OnKeyup using javascript and JQ and result is ...
0
votes
4answers
60 views

Using Javascript in components to call Controller method

I'm attempting to build a custom related list from scratch, with a whole set of new functionality, and in doing so, am replicating the way the default related list looks and feels. Part of this ...
1
vote
1answer
25 views

Creating a pop up message when the user exits the page or exits the browser [duplicate]

i need to create a pop up message on one of our visualforce pages which when the user tries to leave the page or exit the browser when data has been inputted into the inputfields and hasnt pressed the ...
0
votes
1answer
70 views

How to get data dynamically instead of static data?

Have created a graph which includes bar chart with plotted lines and pie chart in it. I'm trying to fetch values dynamically for bar chart but it is not displaying .Have uploaded the picture where ...
0
votes
0answers
46 views

How to change Font style, font size and background of Pageblock table in VF page?

I have created a Visual force page and using Jquery plugin in it...but when i am applying my style to the table for changing the font size, type and background color of the table its not working. ...
3
votes
1answer
40 views

Smart Capture Form Field validation on ExactTarget using JavaScript

I have a landing page that contains a Smart Capture form that sends data back to a custom Object in Salesforce. The form is functional and works as needed. I would like to add custom JavaScript code ...
0
votes
0answers
18 views

Alert message is coming after automatically creating Case and Contact from Prechat form in Live Agent?

We are using Liveaget to support customers.As per one of my requirement,I've implemented that automatically creating case and contact when a chat initiated.Here this functionality is working fine ...
0
votes
1answer
39 views

Collapse functionality in visualforce [duplicate]

I am creating collapsable pageblocks in visualforce and im new to visualforce i tried implementing the following code but its not working and throwing error in jquery file like Refference error ...
0
votes
2answers
46 views

How do I get pass the id of the inputfield to a javascript in visualforce?

Forgive me if this is very easy to do, but I'm having problems, specifically, no ID gets passed to the javascript. I have MULTIPLE input fields defined like this <pageblock> ...
2
votes
1answer
63 views

Passing ID of an apex:inputfield to javascript

I'm new to developing visual force pages and forgive me if this is an easy question but I'm having problems getting the ID of an apex:inputfield and passing it to javascript. What I'm trying to do is ...
2
votes
2answers
77 views

How to create collapse and expand functionality between pageblocks in visual force

I am tryin to create expand and collapse functionality between pageblocks.The scenario is when i click the collapse button in one pageblock ,it should render another pageblock.How this can be achieved ...
1
vote
0answers
49 views

We can click any record it refreshes with in page

My Requirement is: i have created a custom visual force page. in that one custom object have a number of records, when we click on one record it goes to another tab, But my requirement is it ...
1
vote
1answer
34 views

Issue with conditional statement in apex:repeat inside javascript

I am trying to create a map in javascript using apex:repeat tag but it's not working as per expectations. Below is the VF page and controller I have created : <apex:page ...
1
vote
1answer
70 views

Onclick Javascript Method problem- No such column 'ProfileId' on entity 'User'?

For the life of me, I can't figure out what's going on here. I'm getting a javascript error when the query doesn't return any users. It's coming up sporadically. what's going on, and what should i ...
1
vote
1answer
29 views

create flows button using JavaScript in salesforce

I want to display flows in lead object direct button no need to use visualforce pages,i think it is possible in javascript can you please suggest me... Thanks, Bhaskar
0
votes
1answer
23 views

Make enter key execute controller method

I have an inputText being used as a search bar along with a commandButton that when pushed executes the search method in my controller. What I would like to add is that when the user pushes the enter ...
1
vote
1answer
138 views

How do I fix this Stored XSS vulnerability?

The CheckMarx security scanner says that the 4th line: $j('#h{!category}').on('click', function(event) { in the following script, causes an XSS vulnerability. Can someone explain the best way to ...
2
votes
3answers
37 views

search bar accessing apex controller variable in javascript

<apex:inputText id="searchBar" value="{!nameSearch}"/> <apex:commandButton value="Search" action="{!search}" rerender="Everything" status="statusId" onclick="if({!nameSearch}.length() < ...
2
votes
0answers
81 views

Trying to implement Lazy Loading with FancyTree

So I'm trying to implement a Tree Structure using FancyTree. I've gotten the tree to display, but I want to implement lazy loading, but I'm having some trouble. Page: <apex:component ...
0
votes
1answer
92 views

Uncaught ReferenceError: d3 is not defined

While trying to execute, i'm getting an error saying d3 is not defined . Referring to the link : http://bl.ocks.org/mbostock/3885705 to create bar chart. Appreciate the help. <apex:page ...
1
vote
1answer
36 views

adding a large number of subscribers to an ExactTarget list ssjs

I have a large number of subscribers I need need to move from an ExactTarget data extension into different lists using ssjs. This is the basic script I am using <pre> <script ...
3
votes
1answer
21 views

Referencing js library from static resource or from the hosted server in a visualforce page. Which approach gives better page performance?

I am just curious to understand if there is any difference in page performance between referencing a js library from static resource inside of Salesforce or referencing from a hosted server in a ...
0
votes
0answers
24 views

How to get live agent user photo on the custom chat page [duplicate]

I have created a custom chat page and added it to the chat button using live agent. I am required to have the live agent user details to be added on the chat page after a particular live agent user ...
2
votes
0answers
20 views

Javascript not supported in SAP WebdynPro or WebGUI. How can a canvas app subscribe in that situation?

I am in a position trying to submit a Canvas POC to the client. But the issue is Javascript not supported in SAP WebdynPro or WebGUI. How to subscribe to visualforce events from canvas events in that ...
1
vote
0answers
39 views

Can Javascript Activity be used to add/update All Subscribers List?

Can Javascript Activity be used to add to the All Subscribers List at the Enterprise Business Unit and update All Subscribers List at the Child Business Unit? I was able to achieve this by creating ...