AnsweredAssumed Answered

JavaScript Button to save form in New mode and reopen form in Edit mode

Question asked by xparedes on Jan 2, 2019
Latest reply on Jan 7, 2019 by N M


  • I want to create a save and continue button on the form that does the following 2 things:
  1. Saves the form
  2. Reopens the form in Edit Mode


  • I created a form that will only allow one record to have a user's name (which is an uneditable field) and the Monday of the week when the form was created.
  • If a user tries to create a 2nd new form in the same week, the form hides all of the fields and tells the user to edit their previously submitted form for the week (and conveniently includes a hyperlink).
  • I can't use the "Save and Continue" button action because this action keeps the form in "New Mode" rather than change it to Edit Mode, and the rules that I had set up collapse the form & force users to click on the hyperlink.

  • This means that the button action needs to be set to JavaScript, but I need guidance on the following:

            How do I capture the record's ID into a variable using JavaScript upon pressing the button to save the form?