how to add or insert 'others' dropdown values when feeding dynamic dropdown with a rest service which send json

17 views
Skip to first unread message

shineshine

unread,
Jun 19, 2020, 3:27:01 AM6/19/20
to Orbeon Forms
Hi Alex,
how to insert 'others' dropdown values when feeding dynamic dropdown with a rest service which send json

Alessandro Vernet

unread,
Jun 19, 2020, 11:48:02 PM6/19/20
to orb...@googlegroups.com
The dynamic dropdown has no built-in support for "Other…". So you would need
to have that value returned by your service (for usability maybe as the
first one, if a long list). And then if you want to have the user enter the
"other" value in a text field, you'll want to make that text field visible
only if the value "other" was selected in the dynamic dropdown. Would this
work for your use case?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

shiningstar

unread,
Jun 22, 2020, 12:10:15 PM6/22/20
to orb...@googlegroups.com
<http://discuss.orbeon.com/file/t375838/Capture.png>
Hi Alex, firstly I decided to do this way but according to the figure, it's
ok for 'Applicant Name' and 'Director Name' with their respective http
services and actions. But for 'Company Members' the 'other' value will be
duplicate. sorry for not explaning details in my first post.

Alessandro Vernet

unread,
Jun 22, 2020, 11:04:15 PM6/22/20
to orb...@googlegroups.com
Hi Shine,

From your list, it seems that Company Members = Applicants + Directors. And
I imagine you don't want "Other" twice in the that list. How is the Company
Members list produced? I would imagine that this is done in a service you
created, in which case could you filter values "other" except the last one?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

Alessandro Vernet

unread,
Jul 2, 2020, 7:35:54 PM7/2/20
to orb...@googlegroups.com
Hi Shine, did you get a chance to update your service so it wouldn't produce
multiple "Other", or did I misunderstand your question?
Reply all
Reply to author
Forward
0 new messages