- silver007Asked on August 09, 2015 at 04:27 AM
How can I make an ID for several persons in a Textbox, since that I am making a survey and we have to dedicate like 10 persons to do the survey.
if the text or number that was entered in the textbox doesn't match a pre entered data, the form will note submit
it is almost like a user name.
- JotForm SupportMike_GAnswered on August 09, 2015 at 10:06 AM
I'm sorry, I'm not sure I understand your request completely. To my understanding, you have a field where a dedicated person has to enter his name and another field for him to enter a code. The form, however, will not submit if the correct code for the corresponding person didn't match. Is that correct?
I have created a sample form base on my understanding. However, instead of having a textbox where a person would need enter their names I have used a dropdown where they will just have to choose their name from the selection. Then, they will need to enter a correct code for Submit button to be enabled so they can submit the form.
Here is the form I have created: http://form.jotformpro.com/form/52204380807955
On the form, select a name from the drop-down list, then enter a code to enable the Submit button
First Name = 0001, Second Name = 0002, Third Name = 0003 and so on and so forth.
Also, please feel free to clone the form I have created using this guide so you can inspect it.
I hope this helps. But, if this is not what you would like to happen, please help us understand your request by providing us more details, please? We will wait for your response. Thank you.
- silver007Answered on August 10, 2015 at 01:00 AM
Ok it is wonderful, it is the same idea, but as an example, i will give a code for different persons, maybe more that 50 one, I need a Textbox only and distribute the codes, if the code doesn't match then the submit button will not be active.
if I am using more than 50 code, the dropdown will be very long.
- JotForm Supportashwin_dAnswered on August 10, 2015 at 03:34 AM
Please be noted that 50 code you do not have to list in the dropdown. You need to just add condition in your form to check if the code input in the textbox is correct or not and then show/hide the submit button of your form.
I did check your last edited form and found that you have a form field "Staff Code". If I understand your question correctly, if the correct staff code is not input the form should not be allowed to be submitted. Is that correct?
Here are the steps you should follow:
#1. Add a "Form Collapse" field at the start (after Staff code) & end of your form. This will help you to show / hide all form fields based on the staff code. The following guide should help you: https://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool
#2. Add condition in your form to check the input value of the staff code textbox and then show / hide the form fields. The following guide should help you on how to add conditions: https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic
Please check the screenshot below for all the steps:
Please take a look at the following cloned form and see if this is what you wanted to achieve: http://form.jotformpro.com/form/52211939641959? Feel free to clone this form for a closer look. The following guide should help you in form cloning: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL
Do get back to us if you meant to ask something else.
- silver007Answered on August 10, 2015 at 03:53 AM
Dear ashwin_d, this is exactly what I wanted.
thank you very much dear.
- JotForm Supportashwin_dAnswered on August 10, 2015 at 04:57 AM
You are welcome.
I am glad that I was able to help you.
Do get back to us if you have any questions.