Skip to main content
Known Participant
Apr 16, 2021 10:08 PM UTC
Question

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

)

    5 replies

    mikes0011
    Brainy
    Apr 16, 2021 10:14 PM UTC

    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
    Apr 19, 2021 4:46 PM UTC

    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
    Apr 19, 2021 6:37 PM UTC

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

    The Expression Guru