Hi @canimjain
I hope you are doing well today.
In the first place create two forms:
1. register form
2. login form
You can place them on 1 page next to each other or place them on separate pages.
There is no forget password form and in your login form use the HTML field and create a link there with this URL:
/wp-login.php?action=lostpassword
===============
How to insert “Login”
Navigate to Appearance -> Menus and in your menu add a page that has Forminator login form placed as a shortcode
How to insert “Logout”
Navigate to Appearance -> Menus and use CUSTOM LINKS. URL should be:
/wp-login.php?action=logout
===============
Form only for logged-in users
Two solutions here:
1. Use any membership plugin, if not used yet, to protect your pages on post on site. Those plugins allow for that. In the end user will be not able to access those pages or will see a message that this page is protected.
2. In your form Behavior tab enable “Enable logged in submission only”. With that not logged-in user will not see form.
===============
How to show the user their submission data?
You can use our wpDataTables integration and show submission on the account page, for example on bbpress account page or via API:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#wpdatatables
https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/
===============
Can Admin change the status on “User submission page” for each user such as “You have submitted xyz on date 12 Dec 2022.” ” next step 2″, “next step 3” (only specific user can see this)
Can you clarify this a little bit more? I do not fully understand this part.
Kind Regards,
Kris
Thank you, Kris, for your kind support.
First three points solved. I am working on the fourth point.
Clarification of point five: I created a Forminator form “Submit your paper to publish” (visible for logged-in user only). I created a page “User Dashboard” (visible for logged-in user only). Now a registered user “Mr X” logged-in to the website, filled, and submitted the forminator form. At this stage the page “User Dashboard” should show a message (only to Mr X) “you have submitted a paper to publish with us on 16 Dec 2022.” Now once the admin read the submitted form, admin manually can change the status on the “User Dashboard” page for Mr X, as “Admin read your submitted paper, it is accepted/rejected to publish.”
Just like Courier Tracking – admin can change the status (i.e. “your package has been picked from XYZ location”, “your package reached to yzx location – will be delivered it today”….so on)
I hope it clearified. Thank you and I look forward to hear from you.
Hi @canimjain
Thank you for the information, this would be more a custom development than a Forminator thing so hiring a developer may be necessary ( in case you don’t have the knowledge for custom stuff )
I can think on different ways for this maybe some of suggestion help you:
Using content control plugin https://ww.wp.xz.cn/plugins/content-control/ this would allow you to create some conditionals
If we are on the same page, “(b) Can Admin change the status on “User submission page” for each user such as “You have submitted xyz on date 12 Dec 2022.” ” next step 2″, “next step 3” (only specific user can see this)”
ACF plugin could also help you https://ww.wp.xz.cn/plugins/advanced-custom-fields/ you can create custom fields for your user, so let’s say you have pre-defined steps, something like
https://monosnap.com/file/d0pURwzeHIkEFKRC0qN5vYHyiLeYjd
Now your admin can control the specific content in WordPress > User > Edit User, and you can use the get usermeta or https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/ to display in your custom dashboard on frontend, it will require some customization and custom work but could be done.
Best Regards
Patrick Freitas
Hi Patrick,
Thank you for your kind support. I created the custom fields by using ACF Plugin, and these fields can be controlled by admin. However, how can I create first step “you have submitted the form”. When a user fill and submit a Forminator form, the submission behaviour trigger and print the first step “you have submitted a paper to publish” or “you have submitted a form” on the “user dashboard” page.
Hi @canimjain
You can use the mapping for this,
I tested on my lab site by following this:
Created my checkbox https://monosnap.com/file/vTNALSak8FdLOnDMMg28v67pY5ouO5
Went to Forminator > Form > User registration > Custom user meta:
https://monosnap.com/file/3DnVB5VGIgRkl0y53xzTZ6kjEKyAst
Mapped the Name = my field name, value = first checkbox value, in this case first step.
Now when user got registered it checked by default first step:
https://monosnap.com/file/hSvMLx7JsBW8AtluSpuipFNAdVzwLV
As I don’t know your ACF structure I believe the above steps will help you, but Forminator also has this hook
do_action( 'forminator_cform_user_registered', $user_id, $custom_form, $entry, $new_user_data['user_pass'] );
Since it has the user ID that got registered you can use it to extend the functionality and check different fields type in case Forminator native option doesn’t cover that field type.
A really simple example:
add_action( 'forminator_cform_user_registered', function($user_id){
// Do your code here
},10,1);
Note, extending further than that would be out of support scope as it is more a ACF/Theme development thing than a Forminator situation.
Best Regards
Patrick Freitas
Hi @canimjain,
Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.
Best Regards
Nithin