Rob Posted November 29, 2011 Share Posted November 29, 2011 I've been developing an Inpuitfield/Fieldtype combo that allows me to input multiple sets of data, and I'm using JQuery to add another "set" of data into the form markup but I've run into a problem becasue I'm using multi-deimnesional array names for the form fields. This doesn't get processed correctly by PW and when I look at the WireInput class it mentions only allowing single-dimensional arrays. Is there a good reason for this? Multi-dimensional arrays in forms are pretty useful and I can't work out (off the top of my head) why this would be restricted in this way. For example: <input name="fieldname[phonenumber] /> <input name="fieldname[phonenumber] /> This will return an empty array for the field value in the WireInput instance passed into ___ProcessInput() method. Is there a specific reason? I can manage by directly accessing the POST array, but it'd be nicer to use a native PW approach. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now