Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to make a repeater field only have 5 options #37473

    Rupert
    Member
    Post count: 2

    Hello Nayem,

    Fantastic. Perfect!!!!

    Thank you so much.

    Rupert

    in reply to: How to make a repeater field only have 5 options #37300

    Rupert
    Member
    Post count: 2

    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 posts - 1 through 2 (of 2 total)