How to customize the options in the checkbox in dropdown?

  • Profile Image
    Ezma
    Asked on January 04, 2018 at 05:43 AM

    HI,

    I created a form in which I used a checkbox in dropdown widget, then I downloaded the source code to customize it, but when I wanted to change the options that appear in the dropdown list I didn't find where to change them in the codeseparately?


  • Profile Image
    Ardian_L
    Answered on January 04, 2018 at 08:02 AM

    Unfortunately you can not the options from there. You need to change them in Widget Settings.

    1515070883WidgetSettings.gif

  • Profile Image
    Ezma
    Answered on January 04, 2018 at 08:52 AM

    hi,

    Thank's for your answer, I want to know if it's valide for all JotForm components or only for widgets, I mean that if I use the basic components will I be able to customise the value of the component in the source code and to use data from a data base?

  • Profile Image
    Richie_P
    Answered on January 04, 2018 at 10:13 AM

    Widgets as I know of has different java script codes with the form elements. You have to edit the whole javascript to edit the widgets.Yes, I think the Form elements/basic components can be customize to use data from a database.

    You just need to target the correct html and add either java scripts or PHP to connect your database.

    Here is a sample source code of a checkbox form element.


    Hope this information helps.