Paladyn wrote > I`m try to build multiselect form (select depend from each other, data for > depended select is injected with JQuery + JSON). > Everything works fine until validation (error:The input was not found in > the haystack) . I think it`s some sort of security problem (prevents from > injecting select options into code). I wonder if there is a way, to inject > JSON data into form registered array.
I had the same issue before. The solution is very straightforward though. Instead of returning a list of values by JSON to be fed into your Form Element, construct and return new Form Element with values and replace the old one with this content. ----- Cheers, -- Luke Mierzwa -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Form-Select-Element-JSON-updated-Validation-tp4657381p4657395.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
