I would like to know if this is possible to calculate an end date based on user picking a start date and a select list of number of weeks.
i.e. I select a course for 2 weeks, and choose a start date of 10th Feb – in theory the date field would automatically update with the date that is two weeks later, i.e. 24th February.
Is there a way to do this?
Yes you could do something like:
where:
#weeks-selectis the dropdown with the number of weeks#start-dateis the start date input#end-dateis the end date inputModified it to match your order of operations. ie. User picks a number of weeks and then a start date.