Skip to content

Multi input repeatable panel: how to? #104

Answered by JoernT
orazionelson asked this question in Q&A
Discussion options

You must be logged in to vote

@orazionelson you hit a bug indeed. When inserting i see that it inserts fine but without the child elements <resp> and <name>. That why there are no controls. If there's nothing they can bind to they become nonrelevant.

There's a workaround however by using the origin attribute like so:

<fx-insert ref="respStmt" origin="instance('templates')//respStmt"></fx-insert>

however you need to create a xml file containing the template looking like this:

<data>
    <respStmt>
        <resp></resp>
        <name></name>
    </respStmt>
</data>

Finally add the instance to your model:

     <fx-instance id="templates" src="templates.xml"></fx-instance>

That should be an external file not an inline …

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JoernT
Comment options

Comment options

You must be logged in to vote
1 reply
@orazionelson
Comment options

Comment options

You must be logged in to vote
4 replies
@orazionelson
Comment options

@cwittern
Comment options

@JoernT
Comment options

@cwittern
Comment options

Answer selected by orazionelson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants