Show a form only if a given condition is true

1 view
Skip to first unread message

Open eSignForms

unread,
Sep 26, 2016, 11:23:45 AM9/26/16
to Open eSignForms Developers
Question emailed to tech support:

I’m trying to redirect a user to a particular form on condition of a fields value. For example if ${moving} = YES after form completion, user is redirected to form#2.

 

I’ve studied the customize logic options in package and the package party setup but can’t seem to put the pieces together. Is this possible? Perhaps I should explore using javascript to display divs within the form when a variable = ‘some value’?

 

Any ideas are greatly appreciated.

Open eSignForms

unread,
Sep 26, 2016, 1:07:47 PM9/26/16
to Open eSignForms Developers

Assuming form1 and form2 are in the same package, this is easily done with the custom logic in a package.

Put Form1 and Form2 in a package.  By default, this means both forms will always be shown.  However, with custom logic, you can skip forms that are not needed (in your case, if ${moving} != YES SKIP FORM 2):


https://github.com/OpenESignForms/openesignforms/wiki/ProgrammingGuide#skip-document-action


Note that with skip, you can skip the entire document for all parties, or there's an option to skip a document only for a given party (for example, if Form2 is only sometimes used by PartyA, but must still be done by PartyB).

Reply all
Reply to author
Forward
0 new messages