Skip to main content
Known Participant
April 16, 2021
Question

checkbox field not showing checkmark when true

  • April 16, 2021
  • 5 replies
  • 0 views

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: {}

)

    5 replies

    mikes0011
    Brainy
    April 16, 2021

    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?

    The Expression Guru
    neill0004Author
    Known Participant
    April 19, 2021

    Hi,

    Thanks Mike.

    This is my current output on summary.  My expected output should be like the duplicate tax slip(which is a Boolean). I need the "2020" variable to be integer not Boolean.

    Regards

    mikes0011
    Brainy
    April 19, 2021

    but that doesn't really answer my question, which is what you're trying to do with your if() statement?

    The Expression Guru