Page 1 of 1

Related items - validation of parent

Posted: 27 May 2016
by Alexey Babin
Hello,

I'm trying to use the new feature presented in 3.8 - add realted items with button "New item" of internal view. Everethyng works perfect, but when new item is added, default sharepoint validation rules are triggered (a.e. for non-empty fields). Is it possible somehow disable these rules during creation of new relation inem and enable them only when "submit" buton is pressed?

Re: Related items - validation of parent

Posted: 27 May 2016
by rostislav
When you click "New Item" the default new item form is opened. If there are any SharePoint validation rules specified, they will kick in when you save the item. Am I right to understand that you want to temporarily disable those rules when the form is opened via the related items control in this way?

Re: Related items - validation of parent

Posted: 27 May 2016
by Alexey Babin
Not exact. Being on the "New item" form of parent item (i.e. when I'm creating new item, that includes some related items) I have not all fields completed. But part of them are obligatory. I press the "New child item", see the new form and create the child item. When child item is saved (and it's form is closed), all the validation rules of parent item are triggered (and red messages appear for the fields supposed to be filled after user added related items). I want these validation rules of parent to fire only when user wants to save parent item itself.

The case is request for business trip. One section (but not last) is transport, and all the tickets, related to parent request are exact the related items. But after choosing tickets consumer have to fill some other sections, logicaly following.

Re: Related items - validation of parent

Posted: 27 May 2016
by rostislav
You can remove sharepoint validation and apply your own validation with JavaScript (using Forms Designer)