Allow Multiple filter doesn't work
This is an open discussion with 3 replies, filed under General.
Search
Can you post the generated html?
Also, remove the id field. "id" is a reserved Symphony field that probably breaks. You can try naming your field "order id"
I don't have an answer to your question, but I re-wrote your code to take advantage of some XSLT tricks:
<form method="post" action="" enctype="multipart/form-data"> <input name="MAX_FILE_SIZE" type="hidden" value="2097152"/> <xsl:for-each select="/data/exchange/entry"> <xsl:variable name="entry" select="."/> <xsl:variable name="pos" select="position() - 1"/> <div class="form-name"> <xsl:value-of select="$entry/name"/> </div> <input type="hidden" name="fields[{$pos}][id]" value="{$entry/@id}"/> <label>Amount <input type="text" name="fields[{$pos}][amount]" value="0"/> </label> <br/> </xsl:for-each> <input name="action[order-event]" type="submit" value="Submit"/> </form>
Hey guys,
Sorry for the late response, but a ran out of time and had to go to a plan B solution.
Pat: I rewrote large chunks of my code and accidentally lost the original one. VladG: Thanks for the trick, comes in quite handy in a lot of my xsl.
Does anyone has a functioning example of the use of allow multiple that I can take a look at? I want to use it to edit multiple entries from one section, is this the right thing to use?
Create an account or sign in to comment.
I'm making a form, using the allow multiple event filter and it just doesn't want to work. No Error, no nothing. Searched a lot of places for a simple explanation on how to use this event filter but I can't find it.
This is my code: http://pastie.org/8457165
I'm always checking the events output by copying it into the html, but the node remains empty.