Jump to content

Frontend Repeater-Field


yesjoar
 Share

Recommended Posts

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

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

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

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...