If start time of Change is in business hours, a new mandatory field needs to display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 12:44 AM
We have a requirement on Change Requests, that a new mandatory field be visible to users if they select a state time for their Change that is within business hours. I know how to set this to appear Mon-Fri, but I need to be able to also get it to only show if they select the start time as being between 08:00 and 18:00 Mon-Fri. How would I achieve this with a Client Script please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 07:32 AM
Thank you @Abhijith322 that worked when I added in setVisible too, and also an 'else' condition to have them false.
However now realising the other issue - So if the end date of it goes over business hours, it needs to trigger this mandatory field. For instance if it starts 7am Monday and ends 8am Monday, it won't trigger which is correct. If it starts 7am Monday and ends 10am Monday, it WILL trigger which ijs correct.
However if it starts 7am Monday and ends 9pm Monday for instance, it doesn't trigger, but needs to.
Thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 09:20 AM
In short, you need to show the field whenever the implementation window fall in the business hours. Isn't it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2024 02:41 AM
Correct, yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2024 12:07 AM
So this is the script I have currently, runs onChange on the start_date field -:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2024 02:35 AM
Any thoughts community?