Can we fail a Form Action

Hi, 

 

We have a Form Action on NUX that creates a list item and then adds values to certain line items. It was setup as per the requirement but now we want the action to not proceed if the difference between Start Date and End Date (both mandatory line items in the form) is beyond 30 days. 

 

Is it possible to fail the action somehow if the conditions aren't met? I know that forms sit on top of the model so I cannot use Read/Write access to stop a mandatory field from being filled. Let me know if you have any ideas. 

Best Answer

Answers

  • @ankit_cheeni 

     

    Create a validation line item that is formatted as a boolean with the logic: (End Date - Start Date) > 30

     

    And then use that line item as a filter for a view that the action uses.

  • Hi Rob,

    I was talking about Forms on NUX that would help us create items in a list. Sorry if that wasn't clear.
  • @ankit_cheeni 

     

    No, you were clear, I was just advocating for a different way, using an action.  Sorry if I wasn't clear on that.

     

    Rob

  • Yeah seems like the easiest and simplest thing to do. Thanks for validating!