Skip Navigation

[Résolu] I want to set up client approval system… Display certain parts of form condion

This support ticket is created Il y a 8 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Auteur
Publications
#361957

I am trying to: create a design quote and approval system

I visited this URL: none

I expected to see: none

Instead, I got: example....

Step 1 ) Client/User requests project/quote -
>>>user goes to page and sees 3 questions 1) design brief - multi-line field 2) upload image 3) email...
then
>>> this info is displayed via views on new custom project post page...
>>> notification is sent to printer via email with link to newly created project/quote

Step 2 ) Printer goes to page and can see custom fields for min price and max price and fills in quote info and can upload image example and submits form again...
>>> this info is displayed via views on same custom project post page...
>>> notification is sent to client via email with link to updated project/quote

Step 3 ) Conditional fields are displayed for client/user that gives radio button options for approve or reject or revise quote.
If approval then field to pay deposit displays.
If reject then field with clients negotiated price field displays
If revise then multi-line field displays for client to enter more comments...
>>> this info is displayed via views on same custom project post page...
>>> notification is sent to printer via email with link to updated project/quote

Ideally i would like for these various stages be displayed in sequence stated above and say the client can't edit printer fields and the printer can't edit client fields but both can edit certain fields in post and notifications sent when updates occur by either to each respectfully...

Is this clear...

#362010

Thank you for contacting us here in the Support Forum and for your continued trust in my services.

Let me see if I got it straight and provide possible approaches.

1. Client/User requests project/quote -
- user goes to page and sees 3 questions
-- design brief - multi-line field
-- upload image
-- email

==> This is a CRED form.
The Form creates new Posts of type "Project"
The Fields are assigned to that Post Type.
The CRED form holds those fields.
You can use Conditionals to show this fields only to certain user Roles, users, or logged status.
Additionally you can control the Form visibility with Access.

https://toolset.com/documentation/user-guides/create-a-custom-post-type/
https://toolset.com/documentation/user-guides/using-custom-fields/
https://toolset.com/documentation/user-guides/access-control-for-cred-forms/
https://toolset.com/documentation/user-guides/creating-cred-forms/

2. The Email is sent to "Printer"

==> Ideally you have the Form on a Post/Page that is authored by that Printer.
Send the Email to a receiver specified in a Custom Field (can be a hidden one)

Update that hidden Custom Field with a CRED API code where you get the author of the $form_data['container_id'].
https://toolset.com/documentation/user-guides/cred-api/#csd
https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/

3. This info is displayed via views on new custom project post page

The View will query Projects.
Eventually you want to display Project sort as per "Printer" it belongs to.
For this you would need a Parent / Child relationship between Printer and Project Post Types, that requires you to have a Post Type "Printer" where you store the Printers data.
https://toolset.com/documentation/user-guides/creating-post-type-relationships/

4. Printer goes to page and can see custom fields for min price and max price and fills in quote info and can upload image example and submits form again

This is another Form, or a Edit Form of the submitted Project, where the Fields are shown according the User Role, User meta or user login status.
Same process as in 1-3

5. Conditional fields are displayed for client/user that gives radio button options for approve or reject or revise quote.

You could use CRED conditionals here:
https://toolset.com/documentation/user-guides/cred-conditional-display-engine/

Additionally you will need WooCommerce and CRED Commerce to charge payment with a Form.

This is a large scale project and not to do in one single approach.
It will need some Custom Code here and there, with which I can help, and you will need multiple CRED forms, and advanced conditional display.

Let us try to split this project in many sub-projects.

We need as first a clean structure of Printer/Client.
We need to know how those relate to each other and if you need Projects to "belong" to a certain Printer.
In this case you probably will need a Custom Post Type for "Printer", not only a WordPress user.

Please begin with setting up a Test Site where you have a Project Post Type with all fields needed.
Set up the relevant CRED Forms, and determine whether the Client is a logged user or not-

Also it's needed to know if the Printer is a logged user or not.

We can then proceed with the Logic.

Thank you

#362039

Ok - wow - this would be cool - I'l do a visual to use for simplification purposes and resend graphic and set up test site.

#362043

Ok, I'll wait for the details and let's see where I can help.

Thank you for your interest and patience.

#362554

To make this simple I will create the following conversation :

I have test site set up with demo users for printer ( shop manager role )
and demo user ( subscriber ) made...

I have not inserted any notifications but did apply a few rules inside access for form - need to add cred edit link to single post page and then figure out how to display and hide and notify each person...

I hope this helps start us out... I can send you passwords via email so you can login... along with web address.

#362656

To show a certain content only to certain users or roles, best is to follow this DOC:
https://toolset.com/documentation/user-guides/#access

You can also use HTML Conditional:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

I will enable a private form, please describe exactly where I find the content and what the goal is

Thank you

#363421

ok - I will attempt it and send link after I have tried and my face is blue - thank you...

#363522

I re-enable the private form

Please acknowledge that this form is valid only for your next reply.
I might need to activate it again in case you reply without using it.

Thank you

Ce ticket est maintenant fermé. Si vous êtes un client de Toolset et que vous avez besoin d'aide, veuillez ouvrir un nouveau ticket d'assistance