Skip Navigation

[Resolved] I need to make a button for users

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#543049

I've created a custom post with custom taxonomies, which would be a TASK. Only one user would be able to create these TASKS. Other users should be able to assign these tasks to them.

I've created the custom post, custom taxonomies, a form with CRED to create a task. I'll create the view of all these TASK. No problem with that.

But is this possible to show a button on every of these tasks. And then the button would be clicked by any user, the task must be assigned to him. Is it possible to do that with toolset?

The button can just add a something like a taxonomy with this users name. Or add an user name to any custom field. Or make a reltionship with that particular user. I don't know. Is the way to do that?

#543155

Hi, you could accomplish something like this with an additional CRED form. The form will include only one button, which can be called "Take it" or "Assign to me". When the user clicks the button, it submits the form and creates a new CPT, which will be a child of the current Task. You will create a new custom post type, something like "Assignment", which will be the child post type.

In your Content Template for Tasks, you will place your CRED form inside a conditional. That conditional will test to see if there are any child posts of the current Task. If not, you will show the form so someone can click the button and assign the task to themselves. If a child post exists, then you know that the Task has already been assigned and you can show a different message instead of the form.

This is just a general overview. If you have specific questions about how it works, feel free to follow up here or open separate tickets for individual questions.

The forum ‘Types Community Support’ is closed to new topics and replies.