yesjoar Posted April 24, 2013 Share Posted April 24, 2013 Hey there, short question. I have a Repeater-Field with 2 Text-Fields and 1 textarea. A front-end-user should be able to create new elements in this repeater-field. So I have a form with 2 text-fields and 1 textarea, but I don't know, how I can store the inputs in a new Repeater-element… Any ideas for that? Kind regards. y. /edit Ok, sorry for that. Already documented. http://processwire.com/api/fieldtypes/repeaters/ Link to comment Share on other sites More sharing options...
onjegolders Posted April 24, 2013 Share Posted April 24, 2013 Hi yesjoar, i had pretty much the same issue here http://processwire.com/talk/topic/3403-creating-new-repeater-items-through-front-end-form/ Please note that I think you need to use ->removeAll() on existing repeaters, then save() then add in the new repeaters. (This is they way mine is working though there may be better ways) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now