dropdown population from user entered fields

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dropdown population from user entered fields

jteh
Hi,
Is it possible to populate a Dropdown menu control from fields that a user has previously typed into?

e.g. Let's say we have a form that allows you to enter many names in a repeatable section. Can a dropdown menu on the same form be populated with however many names a user has typed in?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: dropdown population from user entered fields

Alessandro  Vernet
Administrator
Hi Jason,

This is a good use case, which, at this point, we don't support well in Form Builder. The values in a dropdown can be static, come from a REST or web service, or come from a database (SQL query), but you can't using just the Form Builder UI have those values from other fields in a repeat.

For this, you'd have to edit the source of the form (which you can do in Form Builder), and change the xf:itemset to read something along these lines:

<xf:itemset ref="/form/household/members/members-iteration">
    <xf:label ref="concat(first-name, ' ', last-name)"/>
    <xf:value ref="concat(first-name, ' ', last-name)"/>
</xf:itemset>

You can find a full example, which you can run in Form Builder on:


Alex

On Thu, May 14, 2015 at 4:02 AM, jteh <[hidden email]> wrote:
Hi,
Is it possible to populate a Dropdown menu control from fields that a user
has previously typed into?

e.g. Let's say we have a form that allows you to enter many names in a
repeatable section. Can a dropdown menu on the same form be populated with
however many names a user has typed in?

Thanks


--
View this message in context: http://discuss.orbeon.com/dropdown-population-from-user-entered-fields-tp4659932.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet