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
2689 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
Parents
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
Reply
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
Children
No Data