I have two fields in my submission form - date and day.
The customer selects date (via calendar pop up text field).
I need the day field to automatically be populated by the day of the week from the date input (so someone inputs 25/12/2013 and the day field automatically says 'Wednesday' or whatever).
Currently, I'm tackling this in a very roundabout way, by passing a long date to a report data page and then using rules (if date contains 'Monday' then hide section 1 etc).
This is laborious and requires the user to click again on a url link.
There must be an easier way. Does anyone know how?
Ideally some javascript to just take the day of the week from the date field would be good.
If that's not possible, then javascript that basically says "if [@field:date] contains 'Monday' then go to data page XXXXXXX"
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
juancoffee
Hello
I have two fields in my submission form - date and day.
The customer selects date (via calendar pop up text field).
I need the day field to automatically be populated by the day of the week from the date input (so someone inputs 25/12/2013 and the day field automatically says 'Wednesday' or whatever).
Currently, I'm tackling this in a very roundabout way, by passing a long date to a report data page and then using rules (if date contains 'Monday' then hide section 1 etc).
This is laborious and requires the user to click again on a url link.
There must be an easier way. Does anyone know how?
Ideally some javascript to just take the day of the week from the date field would be good.
If that's not possible, then javascript that basically says "if [@field:date] contains 'Monday' then go to data page XXXXXXX"
All help appreciated.
Thanks
Duncan
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.