Related items - validation of parent

rss

Posted by Alexey Babin - May 27 ’16 at 03:01

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?

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 7 months 5 days
    #1 by rostislav May 27 ’16 at 06:41

    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?

  • Alexey Babin
    Alexey Babin
    Member
    Member for: 3 years 7 months
    #2 by Alexey Babin May 27 ’16 at 06:57

    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.

     

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 7 months 5 days
    #3 by rostislav May 27 ’16 at 07:58

    [#2]:

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

Displaying 1 to 3 of 3 messages