Suggestions not populating with dynamically added AutoComplete form element
I know there are limits to adding form elements dynamically and I'm wondering if this is one of them.
I'm building a workflow for our Water Resources department for adding apportionment records to a drain (apportionments determine who's responsible for what cost when work is done on the drain. I'd like them to be able to enter the number of apportionments (say 5), and then 5 autocomplete boxes are added to the form where they'll select the entity name (a local township for example). The Add Form Element is part of a loop in the subsequent form's header load event, set to run the number of times the user entered.
I queried the apportionments table with the EntityName as an output field and then used a Get Form Element Items from Features activity with EntityName as the label and value.
The Add Form Element Element property looks like this:
This successfully creates autocomplete elements with the title, but it doesn't auto suggest as I type existing entity names:
I know the instructions for setting up the autocomplete element include a Set Form Element Items activity, so I removed the "items" from the element above and added a Set Form Element Items activity after the Add Form Element and got the same result.
The info about the Add Form Element said it had its limits, but I assume there must be a way to add items to a dynamically added autocomplete element. Unless I'm missing something obvious, always a possibility.😁
-
Hi @Emily Renkema? this seems like bug 43511, which was fixed in GXWF 5.21 (release notes). Can you confirm you've updated to the latest version (GXWF 5.22.2) please?
0 -
I'm at 5.21, so does that mean it should be fixed for me? In any case, it's easy for me to move to 5.22 so I'll try that out and see what's what. Thanks!
0 -
Upgraded to 5.22.2, still getting the same results. The bug in the release notes doesn't sound quite like what I'm seeing. It sounded like it was specific to Chrome/Edge and I'm seeing the same issue when I test in Firefox. is there more documentation for it somewhere?
0 -
@Emily Renkema? hm, that may be a different issue then. It was mentioned in the bug (not visible to you) that Firefox works as expected. Please email us at support@geocortex.com so we can investigate this with you.
0 -
Hi @Emily Renkema?,
What you're encountering is a limitation of dynamically added Form Elements. The Auto Complete Form Element relies on a subworkflow in order to look up the suggestions based on what the user has typed. There is currently no way to dynamically add a subworkflow to a workflow.
0 -
Thanks for the reply Ken, I wondered about this. Can I make this an Idea post? Otherwise, are there any suggestions for how to use an AutoComplete element with the Add Form Element? 0 -
Hi @Emily Renkema?,
By all means feel free to add this to our Ideas page, or upvote an existing idea about it if there is one.
0 -
Cool beans! Now that I know it wasn’t me doing something wrong I’ll try something else. Go ahead and call the case closed and thanks for your help! 0 -
Hi @Emily Renkema?,
You're welcome! I believe you need to accept one of these comments as the answer for the question to be considered closed. I have no control over that.
0 -
Hi Ken Lyon @..., is it possible now to dynamically add subworkflow? I was hoping to dynamically add drop-down lists using the Add Form Element
0 -
Anna Jose You can now use the Set Form Element Event activity to link an existing subworkflow to a dynamically added element.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
11 Kommentare