Auto-populate an end date one month later

Using a webfow form date select field is it possible to then have a following field automatically show an end date that is one month later? Essentially, if they enter a trial start-date, is it possible to auto-populate a trial end date one month later?

Yes. You’d write some custom code to detect changes on your start date field, and then parse, calculate and update the end date field.

I recommend using a library like flatpickr to help you ensure you’re getting good clean dates from your first field, and/or luxon.js for your date math but otherwise it’s not especially difficult to set this up.

1 Like

Thanks! I’ll look into that.