Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By Throwaway
#794110
So I have a calendar that will allow a user to input the meeting date. However, they can submit/next without entering a date and it will get stuck in the loop to check for the date forever.

What would be the best way to have the form redirect to the previous step if @@appointmentDate == ""
or maybe something like

if (empty(@@appointmentDate)) {

} else {

}

I'm not sure if it would be better to use the gateway functionality somehow or if it would be better to use in a trigger.
User avatar
By amosbatto
#813847
You can use a loopback as Alan noted if the case is in a subsequent task, but it is much easier to use form.setOnSubmit() to check when the user submits the form whether the date field is empty.

If you want to check in a trigger after the Dynaform, then you can use PMFRedirectToStep() to redisplay the Dynaform if the date field's variable is empty.

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]