checkbox field not showing checkmark when true

I have a checkbox field that is saving an integer if checked as true. However, when I check the summary interface the checkmark is not there but it does save the value correctly.

Please help. New to appian. Thanks in advance

a!checkboxField(
label: "",
labelPosition: "ABOVE",
choiceLabels: {year(today())-2},
choiceValues: {year(today())-2},
value: if(
ri!Address_Change.'year-2',
{year(today())-2},
null
),
saveInto: a!save(
ri!Address_Change.'year-2',
if(
isnull(
save!value
),
null,
{year(today())-2}
)
),
validations: {}

)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    In your value parameter, what are you trying to do when you use "if( ri!address_change.'year-2'  "?   The "if()" function is intended to act on a boolean value, but you seem to be calling it on just an integer.

    Also, can you provide further explanation and perhaps a screenshot, helping us understand what you're expecting to happen (and why), and what you're experiencing instead?

Reply
  • 0
    Certified Lead Developer

    In your value parameter, what are you trying to do when you use "if( ri!address_change.'year-2'  "?   The "if()" function is intended to act on a boolean value, but you seem to be calling it on just an integer.

    Also, can you provide further explanation and perhaps a screenshot, helping us understand what you're expecting to happen (and why), and what you're experiencing instead?

Children