Set To Date with Custom Format

Force the To date value based on the From selected date, adding extra days and managing the custom format

Custom Script

Add an HTML Widget BEFORE the Form with this custom script to manage a personalized “dd.mm.yyyy” date format

				
					<script defer src="data:text/javascript;base64,CiAgICBmdW5jdGlvbiBmb3JtYXRfZGF0ZShkYXRlKSB7CiAgICBsZXQgdG1wID0gZGF0ZS5zcGxpdCgnLicpOwogICAgZGF0ZSA9IHRtcFsyXSsnLScrdG1wWzFdKyctJyt0bXBbMF07CiAgICBsZXQgY3VycmVudF9kYXRlID0gbmV3IERhdGUoZGF0ZSk7CiAgICBsZXQgZGF5cyA9IDU7IC8vIGNoYW5nZSB3aXRoIHlvdXIgZGF5cwogICAgY3VycmVudF9kYXRlID0gbmV3IERhdGUoIGN1cnJlbnRfZGF0ZS5nZXRUaW1lKCkrKGRheXMqMjQqNjAqNjAqMTAwMCkgKTsgCiAgICByZXR1cm4gKCIwIiArIGN1cnJlbnRfZGF0ZS5nZXREYXRlKCkpLnNsaWNlKC0yKSArICIuIiArICgiMCIgKyAoY3VycmVudF9kYXRlLmdldE1vbnRoKCkgKyAxKSkuc2xpY2UoLTIpCiArICIuIiArIGN1cnJlbnRfZGF0ZS5nZXRGdWxsWWVhcigpCn0K"></script>
				
			

NOTE: If no custom Date Format is forced you can use a single line solution directly into the Set Value field:

new Date( new Date([field id="from"]).getTime()+(5*24*60*60*1000)).toISOString().split('T')[0]

Set Value

Add this rule on Fields Conditions with Value:

=format_date([field id="from"])