Validating Input Form & Saving Issue | Community
Skip to main content
November 3, 2020
Question

Validating Input Form & Saving Issue

  • November 3, 2020
  • 0 replies
  • 854 views

Hi all,

 

I've added the below code to the nms:newOperation Input Form to check that a custom field is not blank when creating a new Campaign. I've inserted the code inside the form but outside of the container. It is giving me an error if the field is blank (working correctly), but then upon inputting the required field and selecting OK, the new campaign window closes but is not created. Any help would be greatly appreciated!

 

<leave>
    <check expr="@audienceLevelId!=''">
        <error>Mandatory field - Please select Audience Level ID</error>
    </check>
</leave>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.