Submit Form results when Validation is not met

Jacob Phillips asked on January 20, 2016 16:01

Version: 7.0.57

Is there a way to submit a form even if Validation is not met?

Thank you.

Recent Answers


David te Kloese answered on January 20, 2016 16:05

Hi,

This will defeat the purpose of validation :)...

You could however remove the validation.. and at the general settings set it to "continue editing the form" so the user can continue editing the form.

Perhaps create a custom "validate" button to check fields.

Hope this helps.

David

2 votesVote for this answer Mark as a Correct answer

Jacob Phillips answered on January 20, 2016 16:54

I realize that it will defeat the validation; however, I have a user that wants the failed results.

Thank you.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on January 20, 2016 17:54

Haven't heard this request before, but you could customize a form webpart, maybe start by cloning the bizform webpart and then check the IsValid, if not, submit the information in the form and maybe set a status of failed or something along those lines. The validation can still fire, and the user won't know that the form was submitted, until the validation is complete. The only thing I would do would be to always insert the form, not allowing any updates, so the form submission that you will be doing through code will just pull the data out of the bizform.Data object and submit a new entry everytime.

1 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on January 20, 2016 17:55

Is this user only a single user that is logged in? You could adapt the Form code file to bypass this user only?

I agree with David, but you would need to consider if no validation is met, then it can prone to spamming.

Thanks Ilesh

1 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on January 20, 2016 20:41

The other option is removing server side validation and implement some javascript, that will do conditional validation for you, but this is worth mentioning, that it is a bit risky, as someone could cheat it.

0 votesVote for this answer Mark as a Correct answer

Jacob Phillips answered on January 20, 2016 21:26

Thank you all for your very prompt and insightful responses. I do agree about the risk, and yes this request is not common to me either.

Joshua, I may try cloning the bizform as you have requested.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on January 20, 2016 21:38

Let us know if you have any issues or need some more help.

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on January 21, 2016 09:11

Hello,

well, it depends on a validation. I can imagine you would create some hidden required field that would check a value of the field you want to validate and apply the condition according to current user (no customizing needed).

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.