Creating Complex User Forms
Support › MB Frontend Submission › Creating Complex User FormsResolved
- This topic has 3 replies, 3 voices, and was last updated 6 years, 11 months ago by
@mindspark.
-
AuthorPosts
-
November 28, 2018 at 5:54 AM #12310
@mindspark
ParticipantHi Anh -
I'm creating CPT Packages. Each package has many custom fields, and I have sib-grouped the fields into individual tabs. For example -
CPT - Package
CF Group 1 - Deal Info
CF Group 2 - Package Info
CF Group 3 - Financial Info
CF Group 4 - Admin Tasks#1. I want to create a front-end form with pagingation that shows only 1 field group at a time. Can this be done with MB or do I need to use a form plugin?
#2. After a given record is created, I want users to be able to edit the records later, so I'm envisioning a search page to find a given Package, and then click to edit. Will MB front-end form allow me to edit entries after they are created in the database?
thanks!
November 29, 2018 at 4:30 PM #12355Anh Tran
KeymasterHi Neil,
#1. I'm afraid there's no pagination supported at the moment. But I think you can use the MB Tabs to organize the fields into tabs, so not many fields are displayed to users at once.
#2. Yes, that's doable. Firstly, you need to create an archive page for your packages. It's like a custom post type archive in WordPress, so no big deal.
Secondly, create a "Edit" page, where you insert the shortcode
[mb_frontend_form]to edit a package.Finally, add a link to the "Edit" page in packages. To make the "Edit" page understands the package, you can pass the
post_idto its URL. So, I'd like to use a filter to auto insert the link to package's post content, like this:add_filter( 'the_content', function( $content ) { if ( ! is_singular( 'package' ) ) { return $content; } $edit_page = 123; // ID to "Edit" page $edit_page_link = get_permalink( $edit_page ); $edit_link = add_query_arg( 'rwmb_frontend_field_post_id', get_the_ID(), $edit_page_link ); $content .= "<p><a href='$edit_link'>Edit package</a></p>"; } );November 29, 2018 at 6:44 PM #12359david.h
ParticipantHi MindSpark,
Take a look at this, it's old but should point you in the right direction:
https://chillicream.com/blog/2013/09/12/jquery-steps-form-wizard
http://www.jquery-steps.com/Thanks
November 29, 2018 at 6:50 PM #12360@mindspark
Participantthanks to both of you.
I'm using Relevanssi and Beaver Themer. Themer will handle the archive template and the MB Themer integration allows for everything I need from there - I think!
thx again!
-
AuthorPosts
- You must be logged in to reply to this topic.