Skip to content

Main Navigation

Conditional Fields for CF7
Conditional Fields
for Contact Form 7

  • Tutorial
  • Docs
  • Form tester
  • Support
  • Free
  • PRO

repeaterRemoveSub

  • Examples
    • List of all supported fields with examples
    • javascript events (advanced)
  • Javascript API
    • repeaterAddSub
    • repeaterAddSubAtIndex
    • repeaterRemoveSub
    • repeaterRemoveSubAtIndex
    • multistepMoveToStep
    • multistepMoveToStepWithValidation
  • Troubleshooting
    • Rule #1: All field names should be unique
    • Rule #2: Beware of JavaScript errors
    • Rule #3: Your theme needs to call wp_footer()
    • Does not work with a third party theme or plugin
    • Groups are not updated automatically after a value changes
    • Fields are not working correctly inside repeater
    • Unexpected end of JSON input
  • FAQ
    • Can I send the form to different email addresses based on the selection?
    • Can I use conditional logic in the email message?
    • How to initialize the conditional logic after an Ajax call?
    • Can I load JS and CSS only when necessary?
    • Styling
    • How can I change a value conditionally?
  1. Home
  2. Docs
  3. Javascript API
  4. repeaterRemoveSub

repeaterRemoveSub

This function allows you to remove sub-entries from a repeater programmatically via JavaScript.

Example

Remove the last sub-entry from the repeater named my-repeater

wpcf7cf.repeaterRemoveSub('.wpcf7-form','my-repeater');

JSDoc

Check out the JSDoc of this function

Updated on September 7, 2020

Doc navigation

← repeaterAddSubAtIndexrepeaterRemoveSubAtIndex →
Was this article helpful to you? No Yes
Proudly powered by WordPress | Theme: UnderStrap by understrap.com.(Version: 2.0)
fdsfdsfds
Contact Form

    Your Name (required)

    Would you like to leave a message?

    Your Message

    show group 1hide group 2show group 3

    I am group 1a

    Field 1

    How happy are you today?

    😀🙂:-S🙁:'-(

    I am group 2
    Not much to see here

    I am group 3

    Enter the value "hello" to show group 4

    Hi! Nice to meet you. I'm group 4!