Tag Archives: JavaScript

How to create a custom button on Formstack for the Salesforce form

In this blog post will cover the process of creating a custom button on Formstack for Salesforce forms, through the incorporation of custom JavaScript code. Users can generate a unique button on the form, streamlining the submission of data into Salesforce. Note : Formstack package should be installed in your org. Step to create custom… Read More »

Save Records in Salesforce via Lightning App

Salesforce Lightning Component framework is a UI framework for developing dynamic apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth. Salesforce Lightning makes it easier to build responsive applications for any device. In the earlier blog ‘Retrieve Records via Lightning’, we discussed how to read records from… Read More »

Prevent page redirection on Apex Command Button through JavaScript

We had a requirement to add client side validation on Apex Command Button but the page was getting redirected after successful validation. So, we tried the following JavaScript code to prevent the page redirection but it didn’t work.We then found a solution to stop redirection by adding the following code at the Command Click Event.… Read More »

Set controller variable/properties from JavaScript

Sometimes we need to pass values to apex code or assign the controller properties in JavaScript. Here is the trick that we can use to set a value to an apex variable/properties from JavaScript code using <apex:inputTextarea>  tag in Visualforce Page. <apex:inputTextarea id=”setDataStringValue” value=”{!setDataStringValue}” styleClass=”exampleDataToSetVariable” style=”display:none;”/> We will set the value ‘data’ in JavaScript function… Read More »