Random Unique Number on Submission
-
Hi, is it possible to add, I tried this tutorial https://wpmudev.com/forums/topic/field-to-generate-random-numbers/ but it seem doesn’t work, or may be I did something wrong.
What I did:
1. Copied the code given here:https://gist.github.com/wpmudev-sls/5c8213b37d4ef2730c57e3822c3fe5a7 and put it in to code snippet (because I don’t know where to put the code file)
2. Insert a hidden field, and in its’ settings, add a “Label” like “Tracking ID“, select “Custom Value” at “Default Value (optional)” and leave “Custom Value” field with no value (as it will be auto filled).Before using the snippet be sure to update $form_id and $form_field values to match your form’s settings.
private $length = 6;
private $form_id = 1100;
private $form_field = ‘hidden-1’;`can you please give me some advice regarding this?
- The topic ‘Random Unique Number on Submission’ is closed to new replies.