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
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?
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
but that doesn't really answer my question, which is what you're trying to do with your if() statement?
I guess the if statement there is not really necessary.
So I'm looking at your screenshot - now can you describe in plain language what you want the behavior to be like? I get that it has something to do with the "duplicate tax slip" entry, but even after a few re-readings i can't quite tell what you actually want it to do.
Also if you have an expanded snippet of example code you could post, including the checkboxes with the different years etc, it might be helpful for you to include that. [When posting code here, please use the "code box" functionality, found in the menu here under "Insert", then "Insert Code". This allows formatting and indentation to not get destroyed when posting, as well as keeping long code from stretching a single comment beyond readability.]