Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!

Add multiple users to a Type Head field on a custom form

Avatar

Level 2

Hello,

I am hoping someone has some clever Text Mode to help me.
I need to make a User Type Head field on a custom form have the capability to add multiple people.
At the moment I can only add one user to this field but the customer wants to add more than one.
I believe this is possible but I can't locate the code on any of the community posts.

Thanks in advance!

4 Replies

Avatar

Level 7

When I've gone digging I haven't found a way for this to be possible using typeahead fields, but I'm replying so the system will notify me if someone else has figured this out.

Avatar

Community Advisor

Hi @Donna_Boj and @Jason_JB,

 

Typeaheads are stored as a  basic JSON object (including ID, name, and minimal other properties), and As Designed (at this time) permit only one selection.

 

If you need “multiples”, you can either look for something built in and similar that is already 1:many (eg Assignments, for Users: Issues, for Projects and Tasks, etc; rarely available and if so often have side effects), or create multiple Typeaheads (not recommended), or create a standard multiselect with the label in English and the values as GUIDs (least worst, but tough to maintain).

 

Regards,

Doug

 

cc: note to self @Doug_Den_Hoed__AtAppStore 

Thanks for the suggestion.
It seems what I originally wanted isn't possible at the moment so we will be compromising.
We will be using a numeric field which ask the user how many users they need to add, then those Type Head fields will appear based on the number selected.
It's not ideal but it's a solution for now.

Avatar

Community Advisor

 

Hi @Donna_Boj,

 

If I’m following, it sounds like you intend to use display logic on a custom form so users can then choose how many Typeahead Users they then need (eg “3”, from among as many as you’ve set up as a maximum on your custom form), so that each such users will then be known, giving you the “multiple” concept you seek, even though each is “single” select.

 

Out of curiosity, may I ask the purpose of capturing these users this way (eg stakeholders? soft-booking resources? approvers?), and why you decided to not use Workftont’s Assignment and/or Approval Path features, which do natively allow for “multiples”?

 

Regards,

Doug

 

cc: note to self @Doug_Den_Hoed__AtAppStore