AnsweredAssumed Answered

How to create a javascript button to check for validation

Question asked by campanellisj on Feb 11, 2015
Latest reply on Oct 22, 2015 by andrewg@intellinet.com

I have been struggling with this for a few days now. I have two buttons on my form, a save and a save and submit. The purpose of this is so when a user clicks on the save button no validation is done on the form and it's status is set to draft. However if they select save and submit I would like the validations to run prior to being saved.

 

I have:
Multi Line text Box called existingIssue that can not be blank on save and submit

Multi Line text Box called impact that can not be blank on save and submit

Multi Line text box called request that can not be blank on save and submit

a calculated total that can not be <= 0 on save and submit

 

I have tried using rules to make something work but it seems that the form can not distinguish between which button is selected and the validation kicks off regardless of what button is selected.

Outcomes