Copy link to clipboard
Copied
Hi all
I'm wanting to put in some formulas to make the completion of the below form easier for my trainers and i've not used javascript before, so i'm not really sure where to start.
I would like to make it so that if they tick satisfactory in Practical assessment 1, the date from the top is put into the date field. Is this even possible?
Copy link to clipboard
Copied
Let's say the export value of 'Practical assessment 1' for 'satisfactory' is 'Choice1', as 'Custom calculation script' of 'date' field use this:
var PA1 = this.getField("Practical assessment 1").valueAsString;
var datefield = this.getField("Date").valueAsString;
event.value = PA1 === "Choice1" ? datefield : "";
Copy link to clipboard
Copied
Let's say the export value of 'Practical assessment 1' for 'satisfactory' is 'Choice1', as 'Custom calculation script' of 'date' field use this:
var PA1 = this.getField("Practical assessment 1").valueAsString;
var datefield = this.getField("Date").valueAsString;
event.value = PA1 === "Choice1" ? datefield : "";
Copy link to clipboard
Copied
That is fantastic - thank you Nesa!