Hi Alexander –
Im trying to evaluate a Yes/No on a dispform – and set a SPFieldBoolean (yes/no) on a list item im inserting in another list
The below test is always evaluating to true – irrespective of whether the yes/no checkbox (Req_x0020_Has_x0020_PII_x002f_MN) is checked
if(getFieldValue(“Req_x0020_Has_x0020_PII_x002f_MN”)){
data.PII = true;
}
If i try straight assignment of data.PII = getFieldVal(“Req_x0020_Has_x0020_PII_x002f_MN”);
I get the sharepoint error that im trying to assign an invalid value to a Yes / No
Is getFieldValue perhaps not liking the SPFieldBoolen type?
Thank you