[Closed] Approve and Reject Radio button in Toolset post form
This support ticket is created 3 years, 11 months 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.
Now we need to apply the same scenario but with two radio buttons (Accept & Reject) as on the attached image. How to apply it on radios instead of Checkboxs.
I have added this code to the update post form, where (accept) is the name of the radio buttons.
but when I submit a new post.
I expect to see two radio buttons, when I select one of them and submit, a message of Approved or rejected appearing.
But what I got is: the message (Approved) appears by default after each new submission.
Hello. Thank you for contacting the Toolset support.
Can you please share problem URL and access details and tell me at what place you want to display what text?
*** 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.
I setup your site and when I visit the problem URL you shared I see two entries as you can see with the following screenshot:
=> hidden link
You said:
But what I got is: the message (Approved) appears by default after each new submission.
==>
What steps I should follow to see the default message (Approved)?
I have deleted all records and starting from the beginning.
The first record works fine, when I insert the second record it comes approved directly. check the attached screenshot. Please try to delete all records and start inserting and approving rejecting the records to know the issue.
I have added the registration form link in the previous private message.
What you want is - you want to always display the radio button Approve/Reject?
I'm not sure where you are asking me to add new entries from frontend as I do not know using what form I should be able to create a new entry.
It will be great if you can share the video where you should explain your problem and what should be your expected results once I review that video I will be able to guide you in the right direction.
Can you please try to add the following code to your form's "Enter the message to display instead of the form. You can use HTML and shortcodes. (but no Toolset Forms)" section.
[wpv-conditional if = "( '[types field='accept' output='raw'][/types]' eq '1' ) AND ('[wpv-search-term param='_tt']' ne '' )"]
Approved
[/wpv-conditional]
[wpv-conditional if = "( '[types field='accept' output='raw'][/types]' eq '2' ) AND ('[wpv-search-term param='_tt']' ne '' )"]
Rejected
[/wpv-conditional]
Still, sometimes it works fine, and sometimes no. I have requested a VPN account to access the website. Could you please open a private reply to share the credentials? It would be better to access the website and check the issue.
I want to display approved or rejected only after form submission. the message should remain and should not return back again to the form after reloading the page.