Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [javascript]

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 the functionality of some of its components.

931 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
1k views

When we click on Button it Should generate a PDF FORM with the Ship to and Ship from details

Can anyone help me out with this requirement ?Any help is much appreciated. We do have two Buttons as GeneratePicklist and GenerateInvoice created using Execute Javascript ,ON a detail page button. ...
0
votes
0answers
532 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 ...
0
votes
0answers
420 views

How to stretch the column on double click

Primary when click the button it is showing like this for example : we can get the heardname"Author" as data initially show as "tatyana c" . if we want to see the the full name .currently it is ...
0
votes
0answers
2k views

call java script function On Change event of ActionSupport

I am using CKEditor to rerender the rich text area. Due to requirement,on change event of look up field, I need to get related information and display on Rich Text Area. I am able to get info, but ...
0
votes
0answers
418 views

error to get values in picklist while loading the page

I have a Picklist(multi seletct) and save Button in a page. when i select some values in that and then click on save button, it is be displaying in a table(selected values with edit link), i have used ...
0
votes
0answers
756 views

How to disable controlling picklist with java script?

I have an issue with my dependent pick list. my controlling picklist should not be editable but salesforce requires that it should be in the visual force page as an input field together with my ...
0
votes
0answers
267 views

Spell checker with Bjspell

Did any one tested spell checker in visualforce page with BJSpell .I have included the bjspell.js file in static resource and included the script in vf page with apex:includescript but still spell ...
0
votes
1answer
167 views

How to overcome 2500 SSJS limit to delete more than 2500 DE records at once?

I created a SSJS script to delete certain records from a DE which seems to work fine for less than 2500 records. But once the number of records that need to be deleted surpass 2500 records, then it ...
0
votes
2answers
40 views

Record Type Not changing if opportunity name has # key

I have 5 record types in case object and following is the code that i used for the list button in order to choose record type and create case. setup/ui/recordtypeselect.jsp?ent=Case&retURL=%2F{!...
0
votes
1answer
93 views

check all button is rendering to the 1st page when i am selecting that in 2nd page(pagination )

I have one page where i am searching for contacts.There the result i am getting and i have given pagination for that.to perform any action on those contacts i am using check box.One select all check ...
0
votes
1answer
505 views

How to close all open Tasks before closing the case

When I try to close the case, all tasks under that case should close and I should be able to close the case. I have a javascript button called "Close case" which gives alert if there are open tasks. ...
0
votes
1answer
63 views

How Can I Integrate the Flickr API with a Lightning App?

I'm presently working my way through Learning JavaScript Design Patterns by Addy Osmani, and trying to figure out how I can make these patterns functional and/or useful in the Salesforce Aura/...
0
votes
2answers
1k views

Change Date Format In Lightning?

From lightning component, when I select the startdate and end date, I should able to select in MM-DD-YYY. But from backend Apex, it is coming as YYY-MM-DD 00:00:00. I want to convert this into that ...
0
votes
1answer
162 views

'Activate Contract' Button (JavaScript execute) returns error

I made a detail button with the intention of clicking it to change the Contract Status to 'Activated'. I used the guided steps below, where it says 'Select Field Type' and then 'Select Field' (I ...
0
votes
1answer
116 views

Opportunity Stage value is 'CLose Lost' … pls help me

My requirement is If Opportunity Stage value is 'CLose Lost' then a visual page will call and dynamically display the competitor, who gain the opportunity. I am trying with below code, but it is not ...
0
votes
1answer
237 views

Difference between logging in into salesforce sandbox with and without consuming wsdl?

I am very new to Salesforce and it's API. I am having a sandbox org and with it I have url(dev sand box ), username, password, security token and last but not the least partner.wsdl My aim was to ...
-1
votes
1answer
43 views

Script to Add report in Email from FTP

As a last step in Automation, I want to send email and attach file from FTP. How can we achieve this. Thanks
-1
votes
1answer
39 views

How to call action method from Javacript inside the Visuaforce page

this working fine but I want to add confirmation window for OK or Cancel. OK means call the NewCase action from script and cancel mean close the confirmation page. <apex:page standardController="...
-1
votes
1answer
42 views

getting a while writing a SOQL query in Javascript button

I'm getting an error while writing a SOQL query in onClick Javascript Button. Below is code {!REQUIRESCRIPT('/soap/ajax/42.0/connection.js')} {!REQUIRESCRIPT("/soap/ajax/42.0/apex.js")} var SRIds =...
-1
votes
1answer
315 views

lightning aura iteration returning blank rows

I am having fits with lightning aura iteration, it doesn't do anything just puts in a blank row, no errors .Having zero luck here is my lightning component Component: <table class="slds-table ...
-1
votes
1answer
447 views

setCallback is not getting called from helper method lightning

I am implementing a Jquery range slider in salesforce lightning. The issue happening is setCallback is not being called in helper method If i am calling the below line out of the stop jquery ...
-1
votes
1answer
411 views

How to prevent postback in VF page?

On click of a button, I want to prevent postback so that the page does not refresh. I tried with below but doesn't prevent from postback. Any help? <div> <button type="button" onclick="...
-1
votes
1answer
1k views

Visualforce : jQuery Datepicker not showing

I am attempting to use jQuery to show datepicker on a VF page. I used an HTML5 input tag before and that worked in chrome but not in IE. If there are better ways to show the calendar in both chrome ...
-1
votes
1answer
333 views

How can I default a standard lookup field on a VF Page

I am using using a custom javascript button which sends a list of records to a visualforce task page. There is a an apex class which mass creates records based on the records sent to it once fields on ...
-2
votes
1answer
508 views

use javascript function in list button onclick javascript

In a List button, i execute javascript code, and for this i defined a static resource where i implemented some functions and i included my resource this way : {!REQUIRESCRIPT('/resource/...
-2
votes
1answer
126 views

Can someone provide assistance with Javascript code to validate a custom field on a web to lead form?

I have a basic web to lead form. I have created the following javascript code to ensure that a couple of my standard fields are filled in. If they are left blank the javascript error appears, and ...
-2
votes
2answers
1k views

Can we get id from repeat block to get element in Javascript?

<apex:page controller="weatherAddRowController1" id="thePage" sidebar="false"> <script> function calculate1(sev, num){ var res; sev = document.getElementById("{!$Component.myForm:...
-2
votes
3answers
4k views

need to display selected Values through javascript

My VF page is something like this <apex:page standardController="Temporary_Contact__c" extensions="tempView" > <apex:includeScript value="{!URLFOR($Resource.jquery)}"/> <script ...
-3
votes
1answer
52 views

Page Block color not working

I am trying to change pageblock color using javascript. it is not getting changed getting error colorPageBlock is not defined in the console. please advise. <script> function ...
-3
votes
1answer
169 views

Custom picklist in vf page by using java script

I have one picklist, values with city names.and i have 3 text fields . if i select one value from picklist,seleted value(item value) should be populate in the 1st text field.in 2nd text field ---item ...
-4
votes
1answer
202 views

Validation by using Json

I have three rows on a Visualforce page. The requirement is that when any value of this field is blank it will show the error message on the page. I have to do this with the help of JSON and by using ...