Conditional "Redirect to" from a Browse form
Posted: Sun Apr 18, 2021 3:08 pm
Hi, I have a Browse form for a view in my database. This view is made from a UNION request, and primary key is not relevant here. Since a primary key is mandatory in the nuBuilder form, I decided to include a field called "fake_id" in my view. The "fake_id" field contains either NULL (first part of the UNION) or an actual ID (from the second part of the UNION).
Since I have a fake "primary key" for my nuBuilder form, I decided to take some benefit from it and also use the "redirect to" ability. But what I would like is:
* inactive click when the user selects something with NULL in the "fake_id" field;
* actual redirect when the user selects something with an id.
The current behaviour is always redirecting (relevant redirecting when there is an id and redirecting to a dummy new record when the id is NULL).
How could I disable the useless redirecting in order to prevent the users inserting dummy things if they mistakenly click on some records from my Browse form?
Since I have a fake "primary key" for my nuBuilder form, I decided to take some benefit from it and also use the "redirect to" ability. But what I would like is:
* inactive click when the user selects something with NULL in the "fake_id" field;
* actual redirect when the user selects something with an id.
The current behaviour is always redirecting (relevant redirecting when there is an id and redirecting to a dummy new record when the id is NULL).
How could I disable the useless redirecting in order to prevent the users inserting dummy things if they mistakenly click on some records from my Browse form?