HIDDEN ID – Generate Quote Ticket
-
Hi! I’ve just installed the plugin cause i need to add a unique id for each submitted form.
I need the number to be hidden when completing the form but appear as the succeed sent message and on the email the admin receives.What I did was:
1- Added to functions.php:
/* Generate Quote Ticket */ function genTicketString() { return substr(md5(uniqid(mt_rand(), true)), 0, 8); } add_shortcode('quoteticket', 'genTicketString');2- Then in the form settings:
[dynamictext ticket “quoteticket”]3- Then in the email and messages settings:
[ticket]It worked fine in the success message and the email. But the field is editable in the form, users can errase the id.
So I tried to hide the field by adding “hidden” in form settings:
[hidden dynamictext ticket “quoteticket”]I worked fine un the form (the field was not visible), but not in the success message or the email. It showed “[ticket]” instead of the id.
How can I hide the id and get the number later?
Another solution I thought is to disable the field, so the user can’t errase the random number.
What can I do?
Thanks!!
The topic ‘HIDDEN ID – Generate Quote Ticket’ is closed to new replies.