Hi Alexander
I’m struggling to set the field value of a drop-down field called SlotLength
function dffs_PreSaveDuration(){
var noBaby = getFieldValue("BabyNumber").split(" ", 1);
var X40 = Math.floor(noBaby*40);
console.log(X40);
setFieldValue("SlotLength", "[X40]");
The BabyNumber field is a drop-down with the following values: 1 baby, 2 babies, 3 or more babies. The SlotLength field is also a drop-down with the following values: 40, 80, 120. When checking the console.log(X40) it shows the expected value. I’m clearly making a mistake setting the field value for SlotLength. But I cannot figure it out.
Regards
Paul