I would like to show two types of comment depending on “eventname” exists in db or not.
When I set like below, I’ve got dmxvalidatorerror on part. And nothing shows about this part.
here, I would like to check if eventname.value exists in the database already or not. if eventnameck.data.query==0, which means the same eventname as input’s eventname doesn’t exist in db.
Your query cannot return 0 … not sure i understand what exactly are you trying to check? The following expression is wrong: eventnameck.data.query == 0
this is how I set dmx-show now, but these both p-tag parts became "display: none;" and "dmxValidatorErrorserverconnectform1eventname" div-tag appeared. like attached image in my previous comment.
No, not on submit, I would like to check eventnameck.data.query1.totalevent when any text is put in this eventname input, this serverconnectform1 has 4 steps (not this hidden one, named "eventnameck") and this input is on the 1st step, I wanted to validate eventname input data before moving to the 2nd step. So I'm trying to use keyup in the dynamic attribute.
here is what I want to do.
1)I would like user to fill required info in the form, called serverconnectform1.
2)but serverconnectform1 is too big, so I divided it into 4steps, by refering to https://docs.wappler.io/t/creating-multi-steps-forms/10799
3)if validate all the information in the form, when serverconnectform1 is submit, it is too many and I don’t want users to go back to the previous step or even before to correct input information.
4)So I would like to validate input data step by step.
5)on this 1st step, I need to check the data existence only for eventname in the database.
now I would like to validate “eventname” with db, if it exists already or not, real time again.
other data validation is not required to do server connection.