Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
2685 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi,I'm currently working on an interface with a checkbox with multiple value
Jess
over 9 years ago
Hi,I'm currently working on an interface with a checkbox with multiple values ac is already set to Text and checked as array and my sail code is:
a!checkboxField(
label: "Document Check List",
choiceLabels: cons!CONS_documents,
choiceValues: cons!CONS_documents,
value: ri!compliance_missingDocs,
saveInto: ri!compliance_missingDocs,
required: if(ri!status="For Compliance-Incomplete Documents",true(),false())
)
Problem is I keep on getting this error (please see attached). Also code seem to run fine when I created it on interface. Please let me know if I missing something. TIA
OriginalPostID-145508
OriginalPostID-145508
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
Hi jessicae Try using the below snippet
a!checkboxField(
label: "Document Check List",
choiceLabels: cons!CONS_documents,
choiceValues: cons!CONS_documents,
value: if(rule!APN_isEmpty(ri!compliance_missingDocs),null,ri!compliance_missingDocs),
saveInto: ri!compliance_missingDocs,
required: if(ri!status="For Compliance-Incomplete Documents",true(),false())
)
Added to above, could you please let me know the data type and value of ri!compliance_missingDocs?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tharshulas
over 9 years ago
jessicae,
Seems one of your values not present in checkbox choicevalues. Please cross check your value against constant values and ensure it's available in your constant list.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
GouthamKrishna
over 9 years ago
Is there any default value assigned to that ac in node inputs? In case if it is assigned a default value as "" or {} then change it to 'null' and check the interface. And if that doesn't work then change the value attribute of check box as follows,
value: if(rule!APN_isEmpty(ri!compliance_missingDocs), null, ri!compliance_missingDocs)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jess
over 9 years ago
Seem to work trying things out. I just set the value to "Any Type" and it is already working now! Thanks for the suggestions guys appreciate it!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vishnuv
A Score Level 1
over 9 years ago
Jessicae, i'm facing with the same issue. As you posted, I tried setting the value to "Any Type" but dint work. Could you brief what exactly have you modified?
Thanks in advance...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel