Related items - validation of parent

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

27 May 2016

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?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

27 May 2016

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?

User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

27 May 2016

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.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

27 May 2016

You can remove sharepoint validation and apply your own validation with JavaScript (using Forms Designer)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests