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

  • Ahurley24
    Asked on May 14, 2016 at 9: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

    Jotform Thread 839202 Screenshot
  • Carina
    Replied on May 14, 2016 at 9: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"

    Can I set a default value in the matrix radio button? Image 1 Screenshot 20

     

    Let us know if we can assist you further.

  • Ahurley24
    Replied 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.

  • Jan
    Replied 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:

    Can I set a default value in the matrix radio button? Image 1 Screenshot 30

    Here's the result:

    Can I set a default value in the matrix radio button? Image 2 Screenshot 41

     

    Hope that helps. Thank you.

  • Ahurley24
    Replied on May 14, 2016 at 2: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.

  • Ahurley24
    Replied on May 14, 2016 at 2: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.

  • Jan
    Replied on May 14, 2016 at 3:17 PM

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

    Can I set a default value in the matrix radio button? Image 1 Screenshot 20

     

    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.

  • Ariela
    Replied on February 16, 2017 at 4:13 AM

    Hello,

    How Do I upload the sourcecode to the jotform-page?

    Thank you very much.