Skip to main content

Search

Expression to show a message based on values in a sub-list - Check all sub-list items have checkbox checked

Comments

2 comments

  • ArdeviaForum

    Original Post by Liliia (Imported from Ardevia Forum)

    Hi Sandy,

     

    As far as I understand from the second case, you want just to shown a message that an attachment is required if at least one of the Receipt Attached checkbox is unchecked.
    For this:
    1) add a new action with 'Show message' type for example on Save button;
    2) add Condition expression:

    =[[@SubLists.YourListName.Receipt_x0020_Attached]].filter(function(el){ return !el;}).length
    

     

     


    01.15.2016-12.34.png

     

    3) provide message details;
    4) add opposite Condition expression on 'Save Form' and 'Redirection' actions to not allow saving with unchecked 'Receipt Attached':

    Code:

    =![[@SubLists.YourListName.Receipt_x0020_Attached]].filter(function(el){ return !el;}).length
    
    0
  • ArdeviaForum

    Original Post by Sandy (Imported from Ardevia Forum)

    Awesome.....that worked perfectly.

     

    Thank You

    0

Please sign in to leave a comment.