I have three fields I need to displace as no more 4 decimal places in the form. The field names are CurrentResult1moprior, CurrentResult2moprior and CurrentResult3moprior This are text fields due to Cascading Dropdowns so I assume I have to first convert to number. I’m trying may code snippets found on this forum but none have helped. Here is the last one used:
function convertresult(){
var Result2mo = getFieldValue("CurrentResult2moprior");
if(!isNaN(Result2mo)){
var resultValueFixed = Number(Result2mo).toFixed(4);
setFieldValue("CurrentResult2moprior",resultValueFixed);
}
}