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.


  • Profile Image

    Can I set a default value in the matrix radio button?

    Asked by Ahurley24 on May 14, 2016 at 09:01 AM

    In the attached form we require a response for each line.  Respondent is asked to provide a ranking from 1-10 or N/A.  We would like the default to be N/A

    Page URL:
    https://form.jotform.com/61334566707156

    Screenshot
    radio button matrix table default default value form source code
  • Profile Image

    Answered by Carina on May 14, 2016 at 09:36 AM

    Yes it is possible if you use the source code of the form.

     https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form 

    Then you need to add a property to the radiobutton option that you want to select:

    checked="checked"

     

    Let us know if we can assist you further.

  • Profile Image

    Answered by Ahurley24 on May 14, 2016 at 10:40 AM

    I struggle with identifying the appropriate place to embed the code.  Would it be possible to instruct further?  What is the precise code to include and where exactly should it be placed.  

    there is over 100 lines of code.  I don't know where to place the code, and exactly what the code should be.  Thanks in advance for your assistance.

  • Profile Image
    JotForm Support

    Answered by Jan on May 14, 2016 at 11:39 AM

    You need to add that attribute (checked="checked") in the NA column of each item in the Matrix table. Here's an example:

    Here's the result:

     

    Hope that helps. Thank you.

  • Profile Image

    Answered by Ahurley24 on May 14, 2016 at 02:21 PM

    is there a way to to do this once in the code and copy it across so that each name defaults to the N/A? Since there are over 100 names it is time consuming to find each and add the code.

  • Profile Image

    Answered by Ahurley24 on May 14, 2016 at 02:42 PM

    I have attempted to edit the code as you suggested.  I cannot go in and edit the code nor can I copy and paste the code of edited in word.  I am at a loss as to how to add the attribute u identified.

  • Profile Image
    JotForm Support

    Answered by Jan on May 14, 2016 at 03:17 PM

    You need to open the HTML file to a text editor like Notepad++. Please don't open the code in Word program.

     

    Unfortunately, you need to add that code on each item in the matrix table under the N/A column. You can hire a programmer that can help you create a script for that function if you like.

    Thank you.