Support

Account

Home Forums Add-ons Repeater Field Repeat field and loop

Helping

Repeat field and loop

  • I’m not sure if this add-on is what I need, but here’s what I’m looking for.

    On my CPT, I have custom meta fields for a single text field and date picker. If these are filled out, I’d like to have another set show up, and so on.

    Will this add-on do that? Or will I need to create multiple fields and set conditional logic?

    Once this is done, how can I set a foreach function to display these items? Ideally, I’d like to have a single text field and date picker to be in a list item. I hope that makes sense.

  • Hi @NWTD

    The repeater field will create a table like interface where you define the columns (sub fields) and then repeater the rows.

    Conditional logic will hide / show a field based on another field’s value.

    I think you should use the repeater field to ‘repeat’ the text and date fields.
    You shouldn’t need to use conditional logic for this one.

    Please check out the docs for code examples to loop over the repeater field data

    Thanks
    E

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Repeat field and loop’ is closed to new replies.