Hoppa till huvudinnehållet

Form Element Value Population on Load

Kommentarer

4 kommentarer

  • Stephanie Widas

    Hi Jack!  We are experiencing the same issue.  We can click on a feature, launch a workflow, and sometimes the form prepopulates and sometimes it doesn't.  This doesn't happen all the time, so it is hard to replicate. It is almost as if the form is loading before it has the values.  We tried adding a delay before the form load and it seems to help but isn't 100% effective.  Any other solutions out there?

    0
  • Jack Charde

    Hey Stephanie Widas,

    It's been so long now that I can't 100% remember, but I'd hazard a guess that I may have not been using the right activities to populate some of the form element types, and eventually realized that. This workflow doesn't suffer from this anymore and all of the attributes load into the form properly.

    How are you taking attributes from a Feature and pushing them into your form?

    0
  • Kevin Arden

    Hi,

    We’ve experienced similar behavior when prepopulating values in form elements. As you mentioned, it seems likely to be a timing issue, where the form renders before the element has finished loading its values.

    I’ve noticed this more frequently when using the form header load activity to populate element values. Since each element has its own load activity, that may be the more appropriate place to load its values. That said, I haven’t spent enough time experimenting with the differences between the two approaches to say for certain.

    0
  • Jack Charde

    Kevin Arden I think you may be right in using the load activity on each element instead, to ensure it's initialized before population. I did not do that because the form I had to construct had over 100 fields, so it was easier to use the singular header load event. I suppose it's partly a matter of what your form looks like and the amount of effort expended to pre-populate it, but it surely seems like a timing issue.

    0

Du måste logga in om du vill lämna en kommentar.