Skip Navigation

[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.

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 17 replies, has 2 voices.

Last updated by Minesh 3 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1891331
I got.JPG
I expect.JPG

Hi Minesh

In the previous support ticket which is in https://toolset.com/forums/topic/how-to-add-approve-button-to-approve-the-application/, it works fine.

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.

[wpv-conditional if = "( '[types field='accept' output='raw'][/types]' eq '1' )" ]
Approved
[/wpv-conditional]
[wpv-conditional if = "( '[types field='accept' output='raw'][/types]' eq '2' )" ]
Rejected
[/wpv-conditional]

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.

Please Assist me.

#1892047

Minesh
Supporter

Languages: English (English )

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

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.

#1895797

Any update on this issue?

#1895819

Minesh
Supporter

Languages: English (English )

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

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)?

#1895879
squissue.JPG

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.

#1895961

Minesh
Supporter

Languages: English (English )

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

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.

#1896237

Please check the video from this link. hidden link

#1897441

Minesh
Supporter

Languages: English (English )

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

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]

Do you see it working?

#1898559

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.

#1898577

Minesh
Supporter

Languages: English (English )

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

What you mean by sometimes it works and sometimes not. Please share video again.

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

#1899969

Any update on this issue.

#1900041

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.

#1900895

Please what is the update on this issue? It is important ..

#1900917

Minesh
Supporter

Languages: English (English )

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

Hi Sallim,

I've added the IP as instructed by you to my host files but I yet I do not able to access the site.

#1901037

What is the error you got?

The topic ‘[Closed] Approve and Reject Radio button in Toolset post form’ is closed to new replies.