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 ...
0
votes
0answers
5 views
Disable an outputPanel
Is there a way to disable an <apex:outputPanel> ?
I have an <apex:selectList> and on the onchange event I want to disable the panel.
I tried :
style= "disabled: true;"
But it doesn't ...
1
vote
1answer
11 views
Opening a bootstrap modal on click of a custom button on standard salesforce page
I have a bootstrap modal that I want to open on click of a Custom button on the standard Salesforce page.
So for that I need to Execute a Javascript on the 'Onclick' action of the button (that'll be ...
2
votes
0answers
21 views
Call a method in controller from Component (not in Constructor)-Visualforce
<apex:component>
<apex:attribute name="l" description="l" type="double" assignTo="{!Received_L}"/>
<apex:attribute name="varLng" description="t" type="double" ...
2
votes
1answer
40 views
I'm getting an error invalid type cat3__c while Passing Values to JavaScript from Apex Controller Method
my vf page:
<apex:page controller="ActionFunctionDemoController">
<apex:sectionHeader title="Action Function Demo" subtitle="Save a New Record"/>
<apex:form >
...
1
vote
1answer
26 views
How can I access List type custom setting object in button click javascript?
Here is the code..
if({!CONTAINS($Setup.CommercientSF3__CommercientURL__c.CommercientSF3__URL__c,',')})
{
...
1
vote
2answers
28 views
Is there a way to use JavaScript on Home Page Components? [duplicate]
We can see that the support for JavaScript on home page components is being phased out as described here:
...
1
vote
0answers
16 views
Menu is not closing when Page size down
Here resize main page like mobile screen kind of size.then now click
Login to community portal
On dashboard/any page, click on hamburger menu.
The menu list should be displayed.
Again click on ...
4
votes
1answer
32 views
Refreshing a value on a Visualforce page used as a popup as a precursor to window.close if save is successful
Past performance: A visualforce that would save and then close would hit a validation rule and would then close before the user could see the Message on screen.
I resolved this by putting a ...
2
votes
2answers
87 views
Using dc.js (d3.js and crossfilter) in visualforce
Today I was able to make angular.js run in visualforce. Now, I am trying to use the dc.js in visualforce to generate graphs. I create a page and this is how my code looks like:
<apex:page ...
1
vote
2answers
32 views
Javascript action function not working after Summer 14 release
I have a VF page with a command button. It calls a javascript function, and then an actionFunction to call a method in the apex class. Everything was working fine until summer'14 release. Now, when ...
1
vote
1answer
42 views
Custom button OnClick JavaScript with condition (number field)
In Salesforce.com, I've created a custom detail page button that will create a new Case record from a custom object. All is working well, until I tried to add a piece that sets a checkbox field on ...
5
votes
1answer
26 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
40 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
108 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
24 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 {
...
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
19 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
21 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
639 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
61 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
25 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
19 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
25 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
31 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
34 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
66 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 ...
1
vote
2answers
38 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
34 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
34 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
24 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
37 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
255 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
53 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
54 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
35 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
67 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
29 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
79 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
52 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
44 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
19 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
43 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
49 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
66 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
81 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
51 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
42 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
79 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
31 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 ...