Guest Paul Alexander Posted December 6, 2021 Share Posted December 6, 2021 We're rolling out a 'working from home' request in our portal, and we need to allow people to choose 2 days from a list of working days to work from home. At the moment I'm having to have 2 separate lists each with radio-buttons and the list of days of the week so that people can select 2 separate days. What I'd like is one list of the days of the week, and to allow a maximum of TWO items to be selected (no more) and I'd like to be able to do a check for this and to NOT allow the customer to move forward without doing this. So, to this end, would it be possible to add a 'count of' option in the override flags of the PCF which will flag up when either one or two options have been selected from a checkbox group please? Link to comment Share on other sites More sharing options...
Victor Posted December 6, 2021 Share Posted December 6, 2021 @Paul Alexander why not 2 fields named "Choose Day 1" and the list of weekdays and another field "Choose Day 2" and the same list of weekdays. Have them as radio or dropdowns... Now, I agree that the more elegant solution is the "limited checkbox" or the "count" but we don't have this... Link to comment Share on other sites More sharing options...
Guest Paul Alexander Posted December 6, 2021 Share Posted December 6, 2021 2 minutes ago, Victor said: @Paul Alexander why not 2 fields named "Choose Day 1" and the list of weekdays and another field "Choose Day 2" and the same list of weekdays. Have them as radio or dropdowns... Now, I agree that the more elegant solution is the "limited checkbox" or the "count" but we don't have this... Hi Victor That's exactly what we have at the moment - which sort of works. BUT, in the future, if we go the way that we're hoping, this might change to THREE days a week. And then we'd need another list of weekdays. Also, having these lists doesn't stop people from selecting the SAME weekday in both lists (I know right...why would they?! But they WILL!!) so having a COUNT option would mean that this couldn't happen. For the time being I've got it working - but a COUNT option would be handy I think? Cheers Link to comment Share on other sites More sharing options...
Victor Posted December 6, 2021 Share Posted December 6, 2021 3 minutes ago, Paul Alexander said: having these lists doesn't stop people from selecting the SAME weekday in both lists (I know right...why would they?! But they WILL!!) Link to comment Share on other sites More sharing options...
Guest Paul Alexander Posted December 6, 2021 Share Posted December 6, 2021 haha...I feel her pain!!! Just cos it CAN, doesn't mean it SHOULD..... Link to comment Share on other sites More sharing options...
Steve Giller Posted December 6, 2021 Share Posted December 6, 2021 1 hour ago, Paul Alexander said: having these lists doesn't stop people from selecting the SAME weekday in both lists It's an annoying amount of work - but depending on how often they do select the same day twice, possibly less than correcting that - but you could have conditional fields based on the First day so that if you select Monday, the next question appears and only offers Tuesday onwards, etc. Link to comment Share on other sites More sharing options...
Guest Paul Alexander Posted December 6, 2021 Share Posted December 6, 2021 9 minutes ago, Steve Giller said: It's an annoying amount of work - but depending on how often they do select the same day twice, possibly less than correcting that - but you could have conditional fields based on the First day so that if you select Monday, the next question appears and only offers Tuesday onwards, etc. HI @Steve Giller We COULD....but do you know what make it easier ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now