Forums

unique field "start number"

alexatr 25 Dec, 2019
I have the following problem: The user can choose a startnumber for a race but the form have to check if the entered start number is not already used by another user. When the number is not free there should be displayed an error message and the user have to choose another start number.
Can anyone help me to solve this problem?
healyhatman 25 Dec, 2019
Why not just autogenerate a number for the user? Otherwise, you can use a read data action looking for the number they entered and if found, display the error and use event load action to go back.
alexatr 27 Dec, 2019
The simplest explanation for the question "Why not autogenerate the number" is, that e.g. Rossi never wanna start the race with the number of Marquez ;-). So each top-driver of the austrian enduro championship should have the possibility to choose his personal number (look at www.endurocup.at). Can you help me
  1. with the where conditions in the read data section? The formfield: Name: wunsch_startnummer, ID: wunsch_startnummer | the database field: wunsch_startnummer.
  2. with the exact event loader definition so i have a loop
healyhatman 28 Dec, 2019
The "value" should be {data:fieldnamegoeshere}
alexatr 28 Dec, 2019
Perfect - many thx 4 this hint.
This topic is locked and no more replies can be posted.