Buy Now
Sign in

unique field "start number"

alexatr , December 25 2019, 10:05
A
alexatr 14
December 25 2019, 10:05 #390477
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 8
December 25 2019, 10:35 #390478
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.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
A
alexatr 14
December 27 2019, 09:36 #390499
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 Bildschirmfoto_2019-12-27_um_10.08.56.png
Attachments
Bildschirmfoto_2019-12-27_um_10.08.56.png
Bildschirmfoto_2019-12-27_um_10.08.56.png
(178.96 KiB)
67 Downloads/Views
healyhatman 8
December 28 2019, 13:14 #390503
The "value" should be {data:fieldnamegoeshere}
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
A
alexatr 14
December 28 2019, 16:40 #390505
Perfect - many thx 4 this hint.