Skip Navigation

[Resolved] Creating a standard weekly schedule

This support ticket is created 5 years, 1 month 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1620259

I'm trying to create a simple weekly schedule for employees:

User selects Monday checkbox if working Monday. Two checkboxes appear, one if working Monday DAY and the other if working Monday NIGHT. Repeating that for every day of the week.

Question 1 - Is there a way to create a 1-1 relationship between the User and that CPT "Employee Schedule"
Question 2 - Is there a better way to do this with a repeatable group?
Question 3 - Is there a standard way that people are creating a more standard "Day / Open Time / Closed Time" custom post type?

#1620911
monday-group.JPG
monday.JPG

Hello,

Q1) I think it is possible with Toolsets plugins, for example, you can try these:
1) Create a custom post type "schedule", with below some post field groups
https://toolset.com/documentation/user-guides/custom-content/create-a-custom-post-type/

2) Field group "Week Days", assign it to post type "schedule", with below custom checkbox fields
- Monday
- Tuesday
...
- Sunday
See screenshot monday.JPG

2) Field group "Monday group", with two checkbox fields:
- Monday DAY
- Monday NIGHT

In section "Settings for monday group", add a condition: Monday = 1
See screenshot monday-group.JPG

3) Same as above 2), setup Field groups "Tuesday group" ... "Sunday group"

Then when you create a new "schedule" post, check the option "Monday", you will see the related field group "Monday group".
More help:
https://toolset.com/documentation/user-guides/custom-content/using-custom-fields/

If you want to setup the "schedule" with Toolset Forms in front-end, please check our document:
https://toolset.com/documentation/user-guides/front-end-forms/cred-conditional-display-engine/

Q2) In your case, I don't think it needs repeatable group, in your case

Q3) We do have a plan to add calendar features, but it has not been implemented yet.
https://toolset.com/2019/06/do-you-need-calendar-view-for-toolset/