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

-1
votes
0answers
17 views

Why the data is not updating after making void method as pagereference method?

Void method:: public void updatedetails() { saveRecordStatus = false; string ifmlk= Apexpages.CurrentPage().GetParameters().get('ifrmlnk'); system.debug('ifrmlnk in update ...
3
votes
1answer
15 views

JavaScript SOQL Query for Emailing from Listview

I'm trying to create a button which will pull emails from a list view and push them to an empty email template. It is for a custom object (Students_Programs__c) which has a custom formula field for ...
1
vote
0answers
20 views

Datepicker popup is not dispalying when I use visualforce page

Date Picker is not working for my below code, it is displaying javascript error when I tried to see using F12 in IE. JS error "Unable to get property 'addEventListener' of undefined or null ...
0
votes
1answer
19 views

This page can't be displayed in IE11

Whenever I am using IE-11 , and trying to open Hyperlink's I am getting this error. I know this is IE-11 issue - which is faced by many users - but curious if there is any settings/workaround in ...
0
votes
0answers
16 views

Running .js files in a row on imacros

I have an issue with my imacros script: When I run AMF-Master.iim script. VERSION BUILD=8300326 RECORDER=FX SET !ERRORIGNORE YES URL GOTO=imacros://run/?m=ADDMEFAST/FB-Followers.js URL ...
0
votes
0answers
19 views

Unable to upsert record using Sforce Connection

VF page: <apex:page standardStylesheets="false" sidebar="false" showHeader="false" applyBodyTag="false" applyHtmlTag="false" docType="html-5.0" > <html lang="en" ...
0
votes
1answer
30 views

document.getElementById (“idname”), not outputting in visualforce page

I have a problem i really don't understand, it works fine if i try it on a normal web server but not in salesforce. I have a javascript that gets xml data from a url, and outputs some of the nodes. ...
0
votes
3answers
33 views

Javascript Remoting running on mobile device always get VFRemote.js.map 503 (Service Unavailable)

I am using javascript remoting for a visualforce page to save some data, everything works as expected on desktop/pc (none of the errors below occured), but just not mobile device(using iphone 6 plus ...
0
votes
0answers
21 views

How to clone opportunity records with its related list ,Notes and attachment using javascript

I have cloned the opportunity record using this java script ,but i want to clone the related list records and Notes&Attachment also using this java script. i don't know how to clone related list ...
0
votes
1answer
19 views

Refreshing SFDC page from VF frame: CORS issue

I have a VisualForce page inside a standard SFDC Page Layout. For UX reasons, we want to be able to refresh the outer (parent) page when something is clicked on the VF page. When we try and do this ...
0
votes
0answers
6 views

How to save multiple youtube embedd links in backend and bring multiple links from backend using one apex inputfield? [on hold]

here i am trying to save multiple embedd links of youtube and to bring to page from backend. can anyone explain it, thanks in advance
0
votes
0answers
22 views

phone validation using java script regex [on hold]

we need to allow only integers in my input text field. Don't allow any other special characters and text other than +,- and white spaces. Please give me an example. I am trying to implement it in my ...
0
votes
1answer
19 views

How to get current selected tab index after page reload, i am using Spry.Widget.TabbedPanels?

I have two tabs here, <ul class="TabbedPanelsTabGroup"> <li class="TabbedPanelsTab" id="tFirst">Basic Information</li> <li class="TabbedPanelsTab" ...
2
votes
1answer
11 views

jQuery error : Cannot read property undefined

I have created a custom button on Account layout to test popping up a jQuery modal dialog box. {!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')} {!REQUIRESCRIPT('/js/functions.js')} ...
0
votes
1answer
16 views

Autocomplete javascript/jquery on a standard page layout

This is my situation: I'm triying to create an autocomplete function with javascript or jquery in the contact's page layout. The idea is to autocomplete the post code and state according to what ...
0
votes
1answer
15 views

Display Modal Dialog on Custom Button ( Standard Page Layout )

Is it possible to display a modal dialog upon clicking a custom button on standard page layout ? Example of a modal dialog that we want to be displayed is shown below. Do we need to any javascript ...
1
vote
3answers
38 views

To render a button based on a apex:inputcheckbox field

I have the following piece of code within a javascript popup <apex:column headerValue="Select"> <apex:inputcheckbox value="{!auth.IsSelected__c}" id="selectrecord"/> ...
0
votes
0answers
26 views

Refresh a div variable on button click

I have the following code <div class="viewAllEmailOverlay" onclick="jQuery(this).fadeToggle();jQuery('.viewAllEmailModal').fadeToggle();return false;" style="display: none; position: fixed; ...
1
vote
1answer
30 views

Lightning Component JavaScript - dynamic binding to parent object

I am working on a controller that takes an sObject record and finds the values of a list of field names on an Asset: for (var fid in fsNamesList) { var fieldname = fid; var fieldvalue = ...
0
votes
0answers
17 views

Calling method from javascript popup

<div class="viewAllEmailModal" style="display: none; position: fixed; _position: absolute; top: 20%; _top:expression(eval(document.body.scrollTop)+20); left: 20%; bottom: 18%; width: 60%; ...
1
vote
2answers
35 views

Can I build a custom button to submit a opportunity into approval process?

Is there any way to create a custom JS button that will push a opportunity into one of my specific approval processes? Thanks!
2
votes
1answer
31 views

How to create case using Sforce connection

Javascript <apex:page standardController="case"> <script type="text/javascript"> function insertcase() { alert('came'); var con = ...
1
vote
1answer
15 views

Single apex message coming in red but not multiple apex messages [duplicate]

Couple of days back , I had a problem like i have a page message and I want the text to be in red color. after applying some css it worked out well.But if i am showing more than one error ,then only ...
-1
votes
1answer
17 views

How to Validation phone number to allow the white spaces, (),+ and - symbols using Visual force Page?

How to Validation phone number to allow the white spaces, (),+ and - symbols using Visual force Page? Please give me any examples using java script.
2
votes
2answers
17 views

Custom Onclick Javascript button query

Today we got a notification from Salesforce to remove scripts from home page components and put them in Visualforce areas. Eventhough we are not impacted by this specific notification, I am just ...
1
vote
1answer
43 views

Refresh visualforce page after save button [closed]

I created a visualforce page with some input fields and a save button and there is also an output field which is based on the input fields. After I click save, the output field remains the same and I ...
0
votes
0answers
17 views

What is the best approach for retrieving data and/or configuration on page load to be accessible by scripts?

I'm building all of my pages using the SPA (single page app) approach lately. I have typically been following this general model for doing so: My page: <apex:page docType="html-5.0" ...
2
votes
1answer
45 views

Session timeout error on button click

I have created a custom button and added it to a console application. What happens is when a particular profile user do not do any activity then after 10 to 15 minutes on clicking the custom button ...
0
votes
0answers
28 views

Display All the Images from static resource zip file in One Div element for carousel effect

I Want to do a carousel effect in visualforce page and I achieved that somewhat. I have static resource zip file which contains four images in it. For carousel effect am just giving the names of the ...
1
vote
1answer
25 views

How do I set a checkbox on a Visualforce form from an inline edit change?

My Visualforce page has a table displaying details from a controller list. The table has Inline Edit options which work on a Save button. I would like to check a checkbox for the row changed whenever ...
1
vote
1answer
27 views

Visualforce : Javascript Alert Not Displaying Controller Value

Objective : To display the chosen the picklist value as javascript alert when the button is clicked This is my VF Page What actually happens 1. After page load when I click on "Go" it just shows ...
2
votes
2answers
37 views

Hide label of inputfield in visualforce page using jQuery

I can get the visualforce page to hide the input field but I'm unsure how to hide the associated label. How can I hide the label as well? <apex:inputField ...
1
vote
2answers
40 views

Alert display after a method call

I have the following code <apex:commandButton action="{!AuthM.saveList}" id="saveButton" value="Save" onclick="nullDatePopup()"/> <script> function nullDatePopup(){ ...
1
vote
2answers
58 views

Want to make page message text red

I have a page message and I have a requirement that I want the text to be in red color. I have written some javascript like this: <Script> window.onload=func1; function func1() ...
0
votes
0answers
22 views

How to solve Error: Unknown property 'Asset__cStandardController.nameSpace'

Update: <script type="text/javascript"> var _mapCoordinates = '{!JSENCODE(mapCoordinates)}'; alert(_mapCoordinates ); </script> //Controller: ...
0
votes
1answer
36 views

Show an JavaScript alert from code [closed]

I have a simple code such as following: public void showQuery() { try { //try something If(Success) { //Show JavaScript success message } ...
0
votes
1answer
23 views

Call Javascript in Commandbutton

I am not all that familiar with JavaScript. I have a piece of code below that was developed by a predecessor of mine for a Detail page button. The code works fine, but I would now like to use it as ...
0
votes
1answer
21 views

Having problem in adding action on VF page button

Below is my VF and controller,i am having trouble in adding action on commandbutton on VF page. if i add searchEvent in commantbutton action it will create new class. i want to do like that when ...
2
votes
1answer
31 views

Get server name (eg. EU1) via JS working reliable for all cases including Sandboxes and MyDomains

I need to get the server-name via JS (running in a custom link / execute JavaScript). The link is provided by a managed package (packageA) and needs to figure out the server-name to be able to ...
0
votes
3answers
41 views

How to display any message after completion of any task

I am using Apex command button to perform certain operation. after completion of the operation I want to display certain message in popup window. Can somebody help me on this. ...
0
votes
0answers
26 views

addEventListener won't work in VF page

code below.. <apex:page standardController="Case"> <apex:includeScript value="/support/console/35.0/integration.js" /> <script type="text/javascript"> ...
4
votes
1answer
47 views

How to access the lookup field's hidden Id with javascript

I have a visualforce page to do some CRUD operations on a custom object, which contains a lookup field to the account. I need to do some client side validations with javascript based on the Id of the ...
3
votes
1answer
44 views

Spring16 Community Builder/Lightning: Javascript in <head> can't find ElementById on lightning component on page

With the introduction of Spring '16 (currently in Preview), the Community Builder for Template based communities like Napili was updated to allow access to the <head> of the page similarly to ...
0
votes
1answer
21 views

Onchange Javascript to update input field on VF page When an item is selected on Selected list

I created a VF page with input fields of Account Object. I created a select list on Vf page using controller. I want to update the input field(selected__c : datatype--text) with selected option in ...
1
vote
1answer
20 views

Open subtab from Console Primary Tab Component

I have a custom VF Primary Tab Component (Right Sidebar) in the console. That is on the Account layout, this loads to the right with a load of Opportunity information. The issue I am having is I want ...
1
vote
1answer
26 views

Display/Rerender google map with the updated list of addresses

i have displayed google map for accounts(lets say 10 accounts) I have a accounts differentiated by segments. i want to filter out accounts using segment, and based on the result i want to rerender ...
1
vote
1answer
19 views

Query on Javascript get error Malformed_Query

I create list button OnClick Javascript Button on Lead. it will update the Is_Picked__c checkbox on selected record whenever i click the list button. but i still get MALFORMED_QUERY. Any thoughts? ...
1
vote
0answers
24 views

check the save method this code is created a copy when i click on edit button then save button in edit page [closed]

public class ContactInsertController{ public Contact con{get;set;} public String s{get;set;} public String id{get;set;} //Constructor public ContactInsertController() { ...
0
votes
1answer
27 views

How to prevent outputpanel from rerendering when javascript is fired

I have a lookup field that inserts a row of fields onto my page. I have an outputpanel that surrounds the html which needs to be rerendered. The problem is, inside that outputpanel I have a few ...
1
vote
0answers
20 views

AJAX Toolkit login method only creates a 500 Server Error

I'm including apex.js and connection.js (version 32) in some javascript on a preview sandbox running spring'16. I'm trying to use sforce.connection.login(username,passwordAndToken) Unfortunately ...