Radio Button

Home › Forums › General › Radio Button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #64372
    lrl1956
    Participant

    I have created a form and I need the form to calculate a score using radio buttons. Where would I find the field name for the JavaScript?

    #64677
    PDF24 Support
    Moderator

    Hello,

    if you created the form with PDF24 (in the PDF24 Toolbox "Create fillable PDF form", online "Make PDF fillable": https://tools.pdf24.org/en/make-pdf-fillable), click one of the radio buttons. The properties panel then shows:

    • Group name: this is the field name you use in JavaScript. All radio buttons with the same group name form one group, and only one of them can be selected.
    • Value: the value of this one button. The group gets the value of the selected button. If no button is selected, the value is Off.

    For a score, enter numbers as the Value of the buttons, e.g. 1, 2, 3. To show a score, the text field for the result needs a script in its "Calculate Action". A simple calculation without a script (e.g. the sum of selected fields) is not available yet. Thank you for the suggestion, we will add it to our list.

    The button "Show or hide form fields" opens a list of all fields on the page with their names.

    Please note: scripts are only run by PDF programs that support JavaScript and have it switched on, such as Adobe Acrobat Reader. Many browsers and apps ignore them.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.