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

Need to restrict <apex:inputFile> extension using jquery

I am working on Visualforce Site. I am using to attach the attachment in contact. I want to restrict the user to attach only image, PDF or .jpg file at client side. How can I do this using jquery? ...
0
votes
2answers
16 views

Visualforce/Google Chart: Get report ID on event

We have a visualforce/googlechart element on our page that our users would like to be able to click on a bar and run a specific report. However, there are 12 bars on the graph, and each would run a ...
1
vote
1answer
15 views

Record read only based on field create/update from external system [on hold]

We have SFDC - Employee Integration with external HR System, Question is when we receive back the ‘Employee Identifier’ from HR System, I need to make the employee record read only? pls suggest ...
0
votes
1answer
30 views

Passing a bigger file from VF to Apex Controller

I created a page that passes a file from the VF to the Controller. It's working fine, except when the file is bigger I hit the blob limit in the controller. What I do: On the front end I convert ...
0
votes
0answers
12 views

How to call liveagent.startChatWithWindow in C#

I am loading this string in a WebView in Windows Phone 8.1 App using C#: public string html = "<html><head><title></title></head><body><script>window.name = ...
0
votes
3answers
49 views

Pass selected value from html <select> to controller

I have to pass the selected picklist value by user from apex form using <select> and <options> html tag to a standard controllers picklist field. I am unable to get the values from Page ...
0
votes
0answers
11 views

When I resize the div the custom top scroller also be resize

i am creating a vf page with double scroll functionality top and bottom and also implemented a re-size functionality but when I re-size the div top scroll would not be re-size how i ...
1
vote
2answers
29 views

Find all elements ID starting with or Ending with using JQuery in Visualforce

I am trying to search all input elements that starts with a partcular set of characters such as 'idAcc' where my VF page has two inputfields with id = idAccFN and id= idAccLN respectively. ...
1
vote
2answers
32 views

Need to Disable Button for particular status picklist Value

I have a custom button on Contact Screen and a Contact Sync Status Picklist with values New, Modified, Submitted and Activated. On click of button Status will be set to submitted which is done via ...
4
votes
3answers
43 views

How do I reload all JavaScript on the page using oncomplete?

I want to reload all this javascript/jquery. I tried sticking it in a function but it doesn't seem to be rendering properly. <script type="text/javascript"> var $ = jQuery.noConflict(); ...
2
votes
2answers
59 views

Jquery change/click not working with visualforce tags

I am trying to use jquery from visualforce page. Have added the min.js library file too..Below is the code piece sample. I'm able to get 1st alert output i.e. - 'ready to go' inside document.ready ...
0
votes
1answer
21 views

onkeypress=“” affects other fields. How to restrict?

This is my page: and to simplify the search my apex:inputText defines: onkeypress="return searchOnEnter(event);" function searchOnEnter(event) { if (window.event && ...
0
votes
0answers
24 views

Selected mutiple Checkbox Values display on Calendar in Same VF Page? [closed]

Am loading the some mebers data using pageload into FullCalendar Table.I need to Load the User's Selected Checkbox members data on Same FullCalendar Table . Using ActionFunction i can able to load ...
0
votes
1answer
26 views

Passing values using actionfunction with javascript not working

I'm trying to filter a page based on two dates, this is my current actionFunction: <apex:actionFunction action="{!modifySoQLBasedOnNewDataRange}" name="passDateValues" status="loadingDiv"> ...
3
votes
1answer
42 views

How do I stop the loading indicator on the VF page?

I have single field called Case and on its onchange event along with the apex method, it calls the JavaScript function where the loading indicator can be seen on the VF page like below: Till here ...
0
votes
0answers
8 views

Mass export all attachments associated with the current object from S3

I have A bucket in amazon s3 and many files are stored there.I want to get descriptions of the files/attachments i.e name , desc and size etc. in a list on visualforce page with the selection ...
1
vote
2answers
28 views

I wanna make input text field required using javascript ,but currently its not working as expected,though it works as expected for checkbox field

I am not able to detect what I am doing wrong in this piece of code <apex:page > <apex:form id="myForm"> <apex:pageblock id="pb1"> <apex:pageblockSection ...
2
votes
1answer
31 views

How to show error message when maximum limit exceed in text area field?

How to show error message when maximum limit exceed in text area field?.i had wrote the script,its allowing 1000 characters.its ok to me.at the same time need to show error message"text will not allow ...
0
votes
2answers
41 views

How to access Apex:Variable in Javascript

I have a Visualforce Page that uses a standard controller for custom object and an extension. In the extension I have a method that get details of selected record, which is selected in select control. ...
0
votes
0answers
22 views

ExactTarget - Is it possible to send template email to list of users

I am trying to build a simple email application using Javascript to go against either the ExactTarget SOAP or REST API. Our goal is to use only Exact Target to build email templates and then send ...
0
votes
0answers
23 views

How to call a function to create a popup? [closed]

I am using fullcalendar jquery plugin and I want to call function to create a popup when I click on a day. But i don't know where I have to define my function that I call in eventAfterRender - ...
0
votes
0answers
22 views

create contact in popup

I had created a detail page custom button called CreateContact in Account detail page,if I click button,window popup has to open,in window it has to ask for Contact Name,if I give name and click ...
0
votes
0answers
28 views

Javascript does not work properly

I use jQuery dataTables to show my records. I have a button which when clicked a pop up window is shown where the user can choose which columns of the table should be displayed. This is my Javascript ...
1
vote
1answer
44 views

Refresh Page After OnClick

I have a custom VF page acting as a button. When the button is refreshed, a checkbox is either checked or unchecked. All that works fine, but I cannot figure out a way to reload the page after the ...
0
votes
0answers
29 views

Want to onmouseover, onclick, onselect action function on VisualForce component. How can I do it?

<apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" assignTo="{!sObjVal}" ...
0
votes
1answer
28 views

How to create custom user registration page using visualforce page? [closed]

How to create custom user registration page like gmail using visualforce page? When i click submit button it will automatically created in particular site. And i need field level validations. Please ...
2
votes
0answers
35 views

Salesforce Optimistic Record Locking and JavaScript Updates

Is there a way to implement field only updates for Salesforce? Even if fields could be updated concurrently through JavaScript/JavaScript remoting calls, would Salesforce still save the record using ...
1
vote
1answer
39 views

Passing JS selected option to Apex [duplicate]

Two radio buttons are present with two options to select. User can select only one . <div class="slds-col slds-size--1-of-3"> <input id="Quarterlyselector" type="radio" name="myRadio" ...
0
votes
0answers
22 views

run javascript code in process builder

I have 2 custom buttons on my Accounts Object. The buttons have Javascript that tells the execution which Echosign Agreement template to use with the Account Object. I just created a process Builder ...
2
votes
2answers
50 views

How to display the formula field resource image using visual force in sites?

I had used this formula field to display the image from static resource. IF(Lead_SCORE__c >= 0.90,IMAGE("/img/samples/stars_500.gif", "5 Stars"), IF(Lead_SCORE__c >= ...
3
votes
2answers
31 views

Cuttoff the Calendar in the Inline VF page

I have used the <apex:inputField in VF page add as the inline page in the Account page layout. I am wondering the calendar cutoff like below image. Is there any solution? Looking forward your ...
3
votes
1answer
64 views

Convert JS date to Apex format

I am calculating date in JS in the below format: var startnew= new Date(currentYear,3*currQuarter-2,1); var enddatenew= new Date(currentYear,3*currQuarter+1,0); In Apex : List<String> parts ...
0
votes
1answer
31 views

How to show popup with the current record on click of Edit image on the record in vf

Here is my vf--- Controller- public class AccountControllerWithPopup { public list<wrapperclass> wrapperlist{get;set;} public AccountControllerWithPopup(ApexPages.StandardController ...
0
votes
2answers
31 views

Confirm Dialog Box On Detail Page

I wanna add a custom button (Send Mail) on contact detail page, And is email field is having an email then on click he ask with a popup "Wanna send a mail ?" And wanna add 'Yes' Or ...
-1
votes
1answer
34 views

Best approach to add custom dialog (Confirm Action dialog) on click of a custom link button [closed]

The requirement is to display a confirm Action dialog on click of a custom button that is presently having a visualforce page as its content source,used for sending an email to contact record.If the ...
0
votes
1answer
34 views

A link to an event url with javascript in lightning component

I have created a calendar in a lightning component with full calendar, when I click on an event I open a modal in which I can see the title and object of the event, and I also have a button which ...
1
vote
0answers
15 views

Updating visual force page delivered via managed package

I want to add some javascript code in a visualforce page that is delivered via managed package is that possible ? Or is there any work around to access the VF page DOM via JS, Which I am using inside ...
0
votes
1answer
20 views

Custom Button JavaScript to select a check box error

I am currently working on a button on the lead object to automatically select a check box field on the lead object when pushed. The field is called "advocate_record_created__C". When trying to execute ...
2
votes
0answers
16 views

How to set a null value in a data extension field using javascript

I am trying to set null in a data extension field using server side java script, but it doesn't work. it is a date time field that goes to "monday, january 1 of 1900 00:00" every time I try do set it ...
1
vote
0answers
23 views

How to format date picker on salesforce1?

I created a VF page for Mobile. This page contains input field Opportunity close date. I am facing issue the way the calendar is showing only on mobile as shown below. Can any one please tell me ...
0
votes
1answer
31 views

How to use static Resource images in static Resource javascript

How to use static Resource images in static Resource java script, <img class="canceluploadicon" src="EasyResources.zip/images/closeIcon.png" alt="cancel" width="30"></a></div>'); ...
3
votes
0answers
56 views

Html file in footer setting of customer portal is not working on Summer'16? [closed]

I have used html file in footer setting of customer portal and it is working fine. but today sandbox is updated into summer 16 and its JS and css is not working. Please help me how to use css/Js in ...
-1
votes
1answer
37 views

Call A JavaScipt Method From <apex:commandButton> Instead of call by a html Button [duplicate]

Is it possible to call javaScript from <apex:commandButton> ...?
0
votes
0answers
22 views

How to preserve the state of accordion data-toggle on postback?

I have a Twitter Bootstrap accordion data-toggle binded to a list, in my visualforce page. On page load, the list will be in collapsed state by default. When the user expands it and performs any ...
0
votes
1answer
36 views

How to add custom label in static resource JS alert

How to add custom label in static resource JS alert , i want to create a alert error message using a custom label in static resources
1
vote
2answers
102 views

Adding Error Message to Input Text using javascript/jquery in Visualforce

My requirement is , I wanna add an error message to field seems like standard error only using apex , I don't wanna make them required. Should be like: Update: Apex Class: public class ...
3
votes
0answers
20 views

View all console events

I'm new to Salesforce. I have a CTI integration that needs to fire some events via sforce.console.fireEvent. Is there a tool or some setting I can turn up in the developer console to observe the ...
0
votes
3answers
27 views

Not able to Rerender the pageblockTable of vf page

Whenever I delete a record from the vf page, the pageblocktable should be rerendered. But I used javascript remoting to delete the record and I am able to reload the page but not able to rerender the ...
0
votes
0answers
39 views

Why the custom button not working for first click

I have a custom button in account. When click on the button two times it's not working, But it's working when i click third time and i didn't get the four lines of script of custom button where those ...
1
vote
1answer
40 views

How to load Tableau in Salesforce Visualforce via the Tableau Javascript API?

I'd like to load the following Tableau Javascript Code within Salesforce Visualforce. Although it works, in a browser (see codepen here), I get the below error in the console when I put it in ...