What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How can I create a custom form field?Asked by Jason on September 09, 2014 at 02:37 AM
I need a couple of basic form fields that I would like to be able to create myself. For example, Social Security Numbers would be nice to have. Or any complex set that could be stored as a single hidden value so SSN would be stored as 534-44-3333 rather than 3 numbers. Same with phone numbers. I would like to be able to have the following fields: prefix area code, ldx, pbx, ext phonetype(dropdown), MMS/Txt?, VMAIL?
But I want to add these like you add Address fields. Great job with your existing complex fields, but there are several others I would like to see. How do I write a custom widget?
After a night of drinking/using drugs, Never Rarely Sometimes Often Everytime
I feel guilty o o o o o
I do not remember that night o o o o o
I have to consume more to wake up o o o o o
Have you ever seen a counselor or psychologist regarding your use of alcohol/drugs? o Yes o No
--If yes, Name of Facility:_______________, Name of Counselor___________ dates Seen
Approximately how many days a week do you drink alcohol/use drugs? (drag the min/max bars to indicate times)
Please be noted that it is not possible to create custom fields. You can use the existing fields to achieve most of your requirements.
For example, Social Security Numbers would be nice to have. Or any complex set that could be stored as a single hidden value so SSN would be stored as 534-44-3333 rather than 3 numbers.
Please be noted that we do have "Input Mask" property in the form fields which will help you achieve this requirement. Please check the screenshot below:
There are a variety of field and widgets options to achieve your requirement:
Matrix field: Which is under "Survey Tools" tab.
Matrix Dynamique: http://widgets.jotform.com/widget/matrix_dynamique
Configurable list: http://widgets.jotform.com/widget/configurable_list
You can take advantage of our "Conditions" feature to show hide form fields based on the response of any other questions. The following guide should help you: https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic
We do have few slider widgets to select the range:
Range Slider: http://widgets.jotform.com/widget/range_slider
Numeric Slider: http://widgets.jotform.com/widget/numeric_slider
Price Range Slidr: http://widgets.jotform.com/widget/price_range_slidr
Hope this helps.
Do get back to us if you have any questions.