Radio button inside of data repeater

Radio button inside of data repeater

Comments

  • Hello, I have a data repeater of a type that matches an entity (that is stored in a data table). The entity holds a list of another entity type. The data repeater shows one of the fields for the first entity and then has a radio button list that is populated by the list of entities that is stored in the first entity. They are displaying just fine but I cant get the selected value from each radio button list. (the selected data name for the radio buttons do not show in the output data) Is there a way to do this?

  • hmmm, i did not see the error before but if it helps I am getting an error on the radio buttons control "The . in selected Form Data.Options on RadioButtonList is invalid","3/3/2020 11:51:51 AM

  • Hi Jeremy,

    Currently if you need to single out a selected value, youll need to create that a field in the data structure for the field to populate with the selected value.

    For example: I have a data structure named "Example_DB" and in this data structure I have
    [ul][li]Car_Make (String)[/li][li]Car_Model (String)[/li][li]Car_Trims (String[])[/li][/ul]
    The "Trims" will populate my radio buttons, but theres no where for my to map that selected value to. The workaround is to make another property. This could look something like this:

    [ul][li]Car_Make (String)[/li][li]Car_Model (String)[/li][li]Car_Trims (String[])[/li][li]Selected_Trim (String)[/li][/ul]
    [img]att2[/img]

    Now, we can select "Selected_Trim" as the output value for the radio button list.

    [img]att1[/img]

    We now see both the list and the selected value now that it has a place to be stored. The way data repeaters work is it only has access to whatever properties its expecting as a data type.

  • That worked perfectly. Thank you!

Sign In or Register to comment.