- This topic has 3 replies, 2 voices, and was last updated 5 years, 12 months ago by
Steve.
-
AuthorPosts
-
-
February 4, 2016 at 12:52 pm #5846
akforsytMemberI’ve been watching Piklist for a few years now and finally decided to jump in and start using it. One of the biggest draws was the add_more functionality. I am trying out 0.9.9.7 and ran into an issue.
This is for a front-end form. I’m trying to add an HTML field inside an add more but get a JS error when I do so.
Uncaught TypeError: $(…).data(…).replace is not a function
Because of this error, I cannot use the add more to add another section.Here is the Piklist code I am using. It’s from a forum post Steve made.
piklist('field', array( 'type' => 'group' ,'field' => 'reg_notes' ,'add_more' => true ,'label' => 'Notes' ,'description' => 'You can add private notes below for internal reference that only team members will see.' ,'fields' => array( array( 'type' => 'html' ,'field' => 'note_author' ,'value' => $current_user->display_name ,'columns' => 3 ) ,array( 'type' => 'html' ,'field' => 'note_date' ,'value' => date("m/d/y") ,'columns' => 2 ) ,array( 'type' => 'textarea' ,'field' => 'note_text' ,'columns' => 7 ,'attributes' => array( 'placeholder' => 'Your Notes' ) ) ) ));It appears to be the same issue posted here: https://piklist.com/support/topic/add_more-issues/#post-1732
-
February 5, 2016 at 1:53 pm #5850
-
February 11, 2016 at 9:59 am #5911
akforsytMemberThanks Steve. It’s working perfectly now with all the same add-ons enabled and the same theme. I’m not sure what I changed, but you are correct that this is working in 0.9.9.7.
Thanks!
-
February 11, 2016 at 12:15 pm #5916
SteveKeymasterGreat! Closing ticket.
-
-
AuthorPosts
- The topic ‘add_more HTML issue’ is closed to new replies.