You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep, prepopulation is a difficult problem to perform generically but for individual forms is not necessarily hard. It depends on the complexity of your schema.
For starters for generic prepopulation the javascript code would need to parse and understand the schema so that it can understand how the input xml relates to the form. All of the schema parsing at the moment happens in the generation step in scala code which is much easier to manage. I've no intention of doing this stuff in javascript, so generic prepopulation is currently a dead end. If someone has ideas then would be good to hear them.
An example is not available, but parsing xml in javascript is not hard. You might choose to pass the input xml broken up into parameters in the url or have the form call a webservice to get them. At that point for an already generated form you could put in extraScript to load data into the html document using jquery. As the form is already generated you know the ids of the elements to refer to. It gets tricky with repeated elements as you can imagine but for simple forms this technique is not hard.
Is pre-populate from values is difficult or any example is available?
The text was updated successfully, but these errors were encountered: