Forum Replies Created

Viewing 2 Topics - 1 through 2 (of 2 total)
Author Posts
February 24, 2015 at 2:33 am in reply to: How to make a repeater field only have 5 options 37473
Rupert Rupert

Hello Nayem,

Fantastic. Perfect!!!!

Thank you so much.

Rupert

February 21, 2015 at 9:59 pm in reply to: How to make a repeater field only have 5 options 37300
Rupert Rupert

so this is the whole section of script:

init: function() {
            // clone and remove repeated field
            for (var i=0; i<5; ++i ){
              $('.wpuf-form').on('click', 'img.wpuf-clone-field', this.cloneField);
            }
           
            $('.wpuf-form').on('click', 'img.wpuf-remove-field', this.removeField);
            $('.wpuf-form').on('click', 'a.wpuf-delete-avatar', this.deleteAvatar);
            $('.wpuf-form').on('click', 'a#wpuf-post-draft', this.draftPost);

            $('.wpuf-form-add').on('submit', this.formSubmit);
            $('form#post').on('submit', this.adminPostSubmit);

            this.ajaxCategory();
            // image insert
            // this.insertImage();
        },
Viewing 2 Topics - 1 through 2 (of 2 total)