Entering a default value in a database field based on another field

Hi, I have an ‘arrival date’ field and a ‘departure date’ field. I would like the ‘departure date’ field to be automatically registered with four extra days. For example: If ‘Arrival date’ has the date ‘01/08/2024’ I would like the ‘Departure date’ field to be automatically registered with the value ‘05/08/2024’. Thank you all

Welcome to the community @SalvoInca! :partying_face:

You can just add arrival date input + 4 in the departure date field.

Here’s a video : add dates.mp4 - Google Drive

1 Like

Thank you for your reply, but I would like that in the creation of the record, as soon as I enter the arrival date, the departure date is automatically created with 4 days added. I don’t want to open a screen to click on a ‘create trip’ button or something like that. I don’t know if I have explained myself well now.

You mean show before adding with a click of a button?

No, when I register an user that arrive for example tomorrow, I’d like that in the “add automatic field departure date” it will be set like tomorrow + 4 days.

Oh so you have a form? Then check this : add dates - 2.mp4 - Google Drive

We have to add a update action because if you add the departure date in the automatic fields section then we can’t access the arrival date.