Tell us what you are trying to do?
We are developing a registration form. We want to display the values of each applicant in to table using a view. We want to add a button for each row to accept & reject the application. How We can do it?
Hello. Thank you for contacting the Toolset support.
I would like to have little more information. What values you want to display using view? Do you mean you want to display custom user fields with view?
We want to add a button for each row to accept & reject the application?
==>
Do you mean that you want to accept & reject the user that is registered or do you have other application form?
We want to create a custom user field (boolean value) beside each row to accept and reject the applicants. The admin will check the information in the form (the user row), then he/she will decide whether to accept or reject the user by clicking on the approval button
We also want to add a trigger to the button. In the database, we are storing 0 value. When the admin clicks on the button the action must be fired (changing the value in the database from 0 to 1).
Basically, if you want to add a custom user field, you can add a custom user field from:
=> Toolset => Custom Fields => User Fields (tab) => Add New Custom field group for users where you can add as many custom fields as you want
Sorry, you did not understand me. I have a post form that contains a custom field (checkbox). I set the default value to 0. When the applicants try to fill the form they cannot change this value. I used the toolset block to display this value (creating a view). I want to create a button in the view( just like the image that I attached in the above post). Whenever the admin clicks on that button, the value of the checkbox must directly be changed in the database from 0 to 1. It just like the Event concept in Java or a trigger in MySQL. I hope the idea is clear now.
As you using applications as post type?
- As you mentioned in your last reply that "I have a post form that contains a custom field (checkbox)." - For which post type you have added the custom checkbox field.
If you are using Toolset form, you can add the Accept/Reject button using Toolset Form. You need to create Edit post form for and make sure that you have added the Submit button to your edit form.
If you do not know how to do it, please share problem URL and access details.
*** 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.