Anyone know how to just show a dropdown of the days of the week. I am trying to have a dropdown with Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday but actually save it as a date format so that when its that day that it will display the information saved for the day. I don’t want it to be a specific date. Just the day of the week. Not sure how to create the dropdown. Right now i just have it as a text. Any way to convert it to date format? Maybe someone have a workflow that does this? I just can’t wrap my head around how to do this. Thanks!
In your dropdown search, you can format to display what you want (have a look at custom, and you use the day name only). Use formatted as…
I had the same problem, and I ended up with having custom states listing all seven days of a week. When the page loads I have seven actions in a workflow that set the custom states. Not elegant, but it works
Thanks soeren. Can you explain a little bit on how to have custom states? Where do i go about doing this? Is that under the “Conditional Tab”, or in the workflows, or how do i do this? Thanks I am still learning. I am sure this will be helpful to others in the future as well.
It’s a bit complicated. First, define a custom state on an element on your page. It could be the page itself:
It should be of type “date” and be a list. I call mine “Week_days”
Then in a workflow executed when the page loads, you add values to this list corresponding to each day of the week. This is also a bit complicated, since there is no way to just set it to “this Monday”. If you need to have the actual dates for this week or next week, I can explain how to do that. But if you just need any week, just set it to start e.g. 25. September 2017. I have a custom state called “Monday” that I set to this:
You need to do this for all days in the week: create a custom state and set it when the page loads.
Next, add these dates to your “Week_days” list of dates also when the page loads:
I hope this helps. Not very straight-forward, but I could not find a smarter way
That works! Thanks so much for posting this. Helped me sooo much. Finally! So glad there are helpful people in the forum. :)
hey.
I need to display certain data for weekdays, and and certain data for Saturday and again different data for Sunday.
I guess this could work but how do I define when it’s Monday-Friday and when it’s SA and when SU?
I managed to do it with the second condition.
It kinda messed up the first one but I will find a fix. Maybe someone else will find the second condition useful.
This topic was automatically closed after 70 days. New replies are no longer allowed.