How to put radio buttons inside a grid?

hi, is there a way to put a RadioButton inside a grid (component a!gridLayout)?
i saw that Dropdown and Checkbox are allowed, but not the same for RadioButton. are there any workaroud? (like a CheckBox with two choices which keeps only latest one)

OriginalPostID-198339

OriginalPostID-198339

  Discussion posts and replies are publicly visible

Parents
  • @francescop I would like to shed some light from the work around perspective as follows and lets see if other practitioners has got more to suggest:

    Approach - 1:
    Show two choices but persist the last chosen choice. You can do this by modifying the values prior to saving them and you can see this kind of implementation at /search?q=OriginalPostID-155864.

    Disadvantage with this option is that, you see changes after moving out of the sail component post selection of the value (kind of "Unfocus") and reference to this behavior can be found at the same post mentioned above.

    Approach - 2:
    You can configure a checkbox where it displays only one choice. Selecting the available choice retains the chosen value, whereas another choice(which isn't actually available on interface) will be chosen upon deselecting the available choice or in case of a null value. Reference to this can be found at /search?q=OriginalPostID-157077(and also at https://forum.appian.com/suite/help/16.1/SAIL_Recipes.html#Configure_a_Boolean_Checkbox). Disadvantage with this approach is that only one value can be shown as choice.

    Example:
    load(
    local!language,
    a!checkboxField(
    label: "Language",
    instructions: "In which languages are you proficient?",
    choiceLabels: {
    "English"
    },
    choiceValues: {
    "English"
    },
    value: if(rule!APN_isEmpty(local!language),null,if(index(local!language,1,null)<>"English",null,local!language)),
    saveInto: {
    a!save(
    local!language,
    if(
    rule!APN_isEmpty(save!value),
    "Spanish",
    save!value
    )
    )
    }
    )
    )

    The obvious best fit would be an upgrade to latest version.
Reply
  • @francescop I would like to shed some light from the work around perspective as follows and lets see if other practitioners has got more to suggest:

    Approach - 1:
    Show two choices but persist the last chosen choice. You can do this by modifying the values prior to saving them and you can see this kind of implementation at /search?q=OriginalPostID-155864.

    Disadvantage with this option is that, you see changes after moving out of the sail component post selection of the value (kind of "Unfocus") and reference to this behavior can be found at the same post mentioned above.

    Approach - 2:
    You can configure a checkbox where it displays only one choice. Selecting the available choice retains the chosen value, whereas another choice(which isn't actually available on interface) will be chosen upon deselecting the available choice or in case of a null value. Reference to this can be found at /search?q=OriginalPostID-157077(and also at https://forum.appian.com/suite/help/16.1/SAIL_Recipes.html#Configure_a_Boolean_Checkbox). Disadvantage with this approach is that only one value can be shown as choice.

    Example:
    load(
    local!language,
    a!checkboxField(
    label: "Language",
    instructions: "In which languages are you proficient?",
    choiceLabels: {
    "English"
    },
    choiceValues: {
    "English"
    },
    value: if(rule!APN_isEmpty(local!language),null,if(index(local!language,1,null)<>"English",null,local!language)),
    saveInto: {
    a!save(
    local!language,
    if(
    rule!APN_isEmpty(save!value),
    "Spanish",
    save!value
    )
    )
    }
    )
    )

    The obvious best fit would be an upgrade to latest version.
Children
No Data