• New request triggers immediate validation error

    By Kevin Pettitt 2 decades ago

    The very first time you create a request and have not yet set the environment variables for Department and Phone number, those fields immediate throw validation errors because the fields are blank and the form refreshes itself (although I've not looked closely at what triggers that). So, I changed the input validation formulas to the following to avoid the issue:



    @If( @IsDocBeingSaved & @ThisValue = ""; @Failure("Please enter your Department."); @Success )

    and

    @If( @IsDocBeingSaved & @ThisValue=""; @Failure("Please enter your phone number."); @Success )



    I'll probably want to suggest using a different validation approach that rolls up all the validations into a single message, but this is a start. Otherwise another great app, Thanks!