Multiple Entries to one section
This is an open discussion with 3 replies, filed under General.
Search
bump
as i have previously stated i am trying to check on get the result of success in a specific array position is it possible?
I'd recommend using Sections Event for sending data to multiple sections.
Create an account or sign in to comment.
Hi i am having trouble with checking for a success in the returned event xml data after a form with multiple entries is used i followed Brendos gist tutorial
as i am also entering a entry into another section
form example:
<input type="text" name="fields[1][first-name]"/><input type="text" name="fields[1][first-name]"/> <input type="text" name="fields[1][last-name]"/>
<<<< both sets of arrays go into same section<input type="text" name="fields[2][first-name]"/> <input type="text" name="fields[2][last-name]"/> <input type="text" name="fields[0][feedback]"/>
<<< goes to seperate section via the eventi am trying to test with something like this
if($result->getAttribute('result') == 'success') { //do something here however because the data being entered is in different array positions its not picking up a result ... does anyone know a way round this??
}