{"id":7862,"date":"2024-01-24T09:27:00","date_gmt":"2024-01-24T09:27:00","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/salesforce\/?p=7862"},"modified":"2024-08-26T05:53:57","modified_gmt":"2024-08-26T05:53:57","slug":"how-to-reset-field-values-of-repeatable-sections-in-formstack","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/01\/24\/how-to-reset-field-values-of-repeatable-sections-in-formstack\/","title":{"rendered":"How to reset field values of repeatable sections in Formstack for Salesforce forms"},"content":{"rendered":"\n<p>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 &#8216;Repeating&#8217; option while incorporating a related Salesforce object, the linked Salesforce objects become available for the repeatable section.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/1.-Form-Settings-Object-Selection.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/1.-Form-Settings-Object-Selection.png\" alt=\"Form Settings (Object Selection)\"><\/a><\/center>\n<font size=\"2\"><center><i> Form Settings (Object Selection)<\/i><\/center><\/font>\n\n\n\n<p>By default, repeatable sections retain information from the initial entry.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/2.-Default-Repeatable-Section.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/2.-Default-Repeatable-Section.png\" alt=\"Default Repeatable Section\"><\/a><\/center>\n<font size=\"2\"><center><i>Default Repeatable Section<\/i><\/center><\/font>\n\n\n\n<h4 class=\"wp-block-heading\"><em><strong><span style=\"text-decoration: underline;\">Steps to add JavaScript code to reset field values of repeatable sections in Formstack<\/span><\/strong><\/em><\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Note: Formstack package should be installed in your org.<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create Formstack form on Salesforce org, drag and drop the Salesforce object fields on the form.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/3.-New-formstack-form.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/3.-New-formstack-form.png\" alt=\"New Formstack form\"><\/a><\/center>\n<font size=\"2\"><center><i> New Formstack form<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To add JavaScript code find the \u2018form settings\u2019 and find the \u2018JavaScript Code\u2019 option, at the bottom of the form settings to reset field values of repeatable sections in Formstack.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/4.-Form-Settings.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/4.-Form-Settings.png\" alt=\"Form Settings\"><\/a><\/center>\n<font size=\"2\"><center><i> Form Settings<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, add the following code to remove field data from repeatable section and reset field values of repeatable sections in Formstack.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/5.-Javascript-Code.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/5.-Javascript-Code.png\" alt=\"reset field values of repeatable sections in Formstack\"><\/a><\/center>\n<font size=\"2\"><center><i> Javascript Code<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\">\n<li>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 &#8216;Publish Options&#8217;.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/6.-Publish-Draft.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/6.-Publish-Draft.png\" alt=\"Publish Draft\"><\/a><\/center>\n<font size=\"2\"><center><i> Publish Draft<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In \u2018Publishing Options\u2019 select &#8216;Hosted form&#8217; tab and click on form link to reset field values of repeatable sections in Formstack.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/7.-Hosted-Form-Link.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/7.-Hosted-Form-Link.png\" alt=\"Hosted Form Link\"><\/a><\/center>\n<font size=\"2\"><center><i> Hosted Form Link<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lastly check the blank field value of repeatable sections.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/8.-Blank-Repeatable-Section.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/01\/8.-Blank-Repeatable-Section.png\" alt=\"Blank Repeatable Section\"><\/a><\/center>\n<font size=\"2\"><center><i> Blank Repeatable Section<\/i><\/center><\/font>\n\n\n\n<p>By following the above blog instructions, you will be able to learn <strong><em>How to reset field values of repeatable sections in Formstack for Salesforce forms\u201c<\/em><\/strong> <\/p>\n\n\n\n<p>More details about the product are available on <a href=\"https:\/\/www.greytrix.com\/salesforce\/salesforce-erp-integration-greytrix\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/salesforce\/salesforce-erp-integration-greytrix\/\" rel=\"noreferrer noopener\">our website<\/a> and <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noreferrer noopener\">Salesforce AppExchange<\/a>.<\/p>\n\n\n\n<p>We hope you may find this blog resourceful and helpful. However, if you still have concerns and need more help, please contact us at\u00a0<a href=\"mailto:salesforce@greytrix.com\" target=\"_blank\" rel=\"noreferrer noopener\">salesforce@greytrix.com<\/a>.<\/p>\n\n\n\n<p style=\"text-align: justify\"><b>About Us<\/b><\/br>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> \u2013 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.<br><br> Greytrix has some unique solutions for Cloud CRM such as <a href=\"\">Salesforce Sage integration<\/a> for <a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/integration\/\">Sage X3<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-100-integration\/\">Sage 100<\/a> and <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-300-integration\/\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/data-migration-support\/\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Integrated App development<\/a>, Custom 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&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star rated app listed on <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<br> The GUMU&#x2122; 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.<br><br> For more information on our Salesforce products and services, contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><strong>Related Posts<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2023\/12\/12\/how-to-create-a-custom-button-on-formstack-for-the-salesforce-form\/#:~:text=Step%20to%20create%20custom%20button,object%20fields%20on%20the%20form.\" target=\"_blank\" rel=\"noreferrer noopener\">How to create a custom button on Formstack for the Salesforce form<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2023\/11\/27\/how-to-sync-salesforce-maps-advanced-route-calendar-to-microsoft-office-365\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Sync Salesforce Maps Advanced Route Calendar to Microsoft Office 365<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2022\/12\/27\/how-to-create-and-set-up-demo-pardot-org-in-salesforce\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create and Set up Demo Pardot Org in Salesforce<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2022\/08\/16\/how-to-use-static-resources-in-lwc\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use Static Resources In LWC<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8216;Repeating&#8217; option while incorporating a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/01\/24\/how-to-reset-field-values-of-repeatable-sections-in-formstack\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1575,1579,1576,1577,1571,1543,1547,1553,1554,1549,1572,1550,1546,1545,1544,1573,1574,1578],"class_list":["post-7862","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-blank-repeatable-section","tag-child-object","tag-custom-jjavascript-for-formstack","tag-data-submission","tag-default-repeatable-section","tag-form-settings","tag-formstack-for-salesforce","tag-formstack-native-cloud","tag-formstack-package","tag-hosted-form-link","tag-jjavascript-code","tag-native-cloud","tag-new-formstack-form","tag-publish-draft","tag-publish-options","tag-repeatable-section","tag-repeating-option","tag-salesforcewith-formstack"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/7862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=7862"}],"version-history":[{"count":5,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/7862\/revisions"}],"predecessor-version":[{"id":9267,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/7862\/revisions\/9267"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=7862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=7862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=7862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}