How to reset field values of repeatable sections in Formstack for Salesforce forms

By | January 24, 2024

In this blog post, we will explore the procedure to reset field values of repeatable sections within Formstack for Salesforce forms. By integrating custom JavaScript code, users gain the capability to erase field values within the repeatable sections of Formstack for Salesforce forms. When crafting a form and choosing the ‘Repeating’ option while incorporating a related Salesforce object, the linked Salesforce objects become available for the repeatable section.

Form Settings (Object Selection)
Form Settings (Object Selection)

By default, repeatable sections retain information from the initial entry.

Default Repeatable Section
Default Repeatable Section

Steps to add JavaScript code to reset field values of repeatable sections in Formstack

Note: Formstack package should be installed in your org.

  • Create Formstack form on Salesforce org, drag and drop the Salesforce object fields on the form.
New Formstack form
New Formstack form
  • To add JavaScript code find the ‘form settings’ and find the ‘JavaScript Code’ option, at the bottom of the form settings to reset field values of repeatable sections in Formstack.
Form Settings
Form Settings
  • Next, add the following code to remove field data from repeatable section and reset field values of repeatable sections in Formstack.
reset field values of repeatable sections in Formstack
Javascript Code
  • After adding the JavaScript code next step is to publish the form. To publish the form, click on the Publish Draft button and then click on ‘Publish Options’.
Publish Draft
Publish Draft
  • In ‘Publishing Options’ select ‘Hosted form’ tab and click on form link to reset field values of repeatable sections in Formstack.
Hosted Form Link
Hosted Form Link
  • Lastly check the blank field value of repeatable sections.
Blank Repeatable Section
Blank Repeatable Section

By following the above blog instructions, you will be able to learn How to reset field values of repeatable sections in Formstack for Salesforce forms“

More details about the product are available on our website and Salesforce AppExchange.

We hope you may find this blog resourceful and helpful. However, if you still have concerns and need more help, please contact us at salesforce@greytrix.com.

About Us
Greytrix – a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce Sage integration for Sage X3Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data MigrationIntegrated App developmentCustom App development and Technical Support business partners and end users.
Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star rated app listed on Salesforce AppExchange.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

For more information on our Salesforce products and services, contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts