Message Boards Message Boards

How to add check boxes to FormFunction

Posted 10 years ago
POSTED BY: Ninad Faterpekar
7 Replies

That also works great. Thanks Ninad!

POSTED BY: Raul Sananes
POSTED BY: Ninad Faterpekar
POSTED BY: Raul Sananes
POSTED BY: Chad Knutson
POSTED BY: Raul Sananes
POSTED BY: Raul Sananes

I may be wrong, but I don't think a control like CheckboxBar has been implemented. The closest option is "Boolean", but you would have to use it for each option. You could make the suggestion below look better with some more sophisticated FormObject options (put all the checkboxes in a single row)

kform = FormFunction[{"First Name" -> "String", 
    "Last Name" -> "String", "Email" -> "EmailAddress", 
    "ProductA" -> "Boolean", "ProductB" -> "Boolean", 
    "ProductC" -> "Boolean", "My Product " -> {A, B, Cc}, 
    "Type" -> {"2 ", "1 "}}, fu][]

enter image description here

POSTED BY: Chad Knutson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract