Skip Navigation

[Resolved] How to add approve button to approve the application

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to add approve button to approve the application with post listing using view/block

Solution:
You can build the edit form and add the approve button to it within the view loop.

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/how-to-add-approve-button-to-approve-the-application/page/2/#post-1863373

Relevant Documentation:

This support ticket is created 4 years ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 18 replies, has 2 voices.

Last updated by Minesh 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1861109
error.JPG

Dears,

thank you for your continued support,

I have another issue, Please help me to discover the secret behind it.

I have a post form where the users register for our service.
All the applications viewed on a different page using Toolset views as a table.
We need to add a button beside each registration for the admin to approve or reject the applicant.

what we did so far, we added a new field as a checkbox in the field group, then we added it in the form but a hidden,
and we have created another post form with the type Edit Existing we removed all the fields except email and approve checkbox, then we added it in the view.

the issue is, when we check the checkbox to approve and click submit, it is changing to approved correctly even from the database. but if we have more rows (More registrations), the first row automatically become approved before we approving it as on the attached image. or some times I can only approve one applicant, if we approve another row the previous return to be unchecked (unapproved )

let me know if what I did is correct or no? and how to solve this issue

#1861149

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset form does not offer native feature for user approval. However as you added, you can workaround it by adding some custom code or the way you did.

I will require to check how you setup the approval form and how its added to your view for that I will require to know where you added the approval form to your view and the page URL where you added the view.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1861227

It is difficult to give you access since our website should be accessed through a VPN only. So I will give you a copy of our website using the duplicator plugin

#1861265

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sure. Please share the details where you added the view that holds the user form.

I have set the next reply to private which means only you and I have access to it.

#1862203

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing duplicator but duplicator package you shared does not contain any project (wordpress) files.

It only contains the duplicator not the site copy.

Can you please send me working duplicator copy of your site.

I have set the next reply to private which means only you and I have access to it.

#1862267

This is not private. Please open the private message again

#1862293

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I have set the next reply to private which means only you and I have access to it.

#1862299

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see you are sending me only database SQL using duplicator, you should send me duplicator package of your install where it should be 1:1 copy of your site.

Please also share the URL where you added the view which holds the form?

I will require full duplicator package having your WordPress site copy + installer file.

I have set the next reply to private which means only you and I have access to it.

#1862301

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can I create duplicator package on your site and download it on my own?

#1863213

Dear,

I have sent you the package and the installer that I got from the duplicator in the google drive link.
How you will create the duplicator package on my website?

#1863215

shall I send them again? Or can I use another backup blugin?

#1863217

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The duplicator package you sent to me is not correct.

Can I take it on my own - I will require your permission and make sure you backup your site.

#1863235

Strange. the same package I sent on the previous support tickets.
You will not be able to access it, our website should be accessed through a VPN.

#1863289

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello Salim,

As you shared you shared the duplicator package in previous ticket as as you can see with the following previous ticket you created, it was database only duplicator as shared by Waqar.
=> https://toolset.com/forums/topic/email-notification-showing-error-about-incomplete-setting/#post-1854427

I successfully setup the database only duplicator with fresh WordPress + only Toolset plugins active but when I try to access the pages you created it wont allow me to access those on frontend as it says it will require Avada theme and you may use other Avada addons.

If you can tell me the view name in question where you added the form I can quickly create a new page and add the view to that page and check the issue.

#1863325

Dear

the view page link is ..../vu-registration-view-squ/?lang=en