If BooleanDecision has no value thenm return null when exporting to docx and pdf

This commit is contained in:
George Kalampokis 2021-07-19 14:08:48 +03:00
parent c33ffc153b
commit 1512d0c424
1 changed files with 2 additions and 1 deletions

View File

@ -343,7 +343,8 @@ public class WordBuilder {
}
case "booleanDecision":
if (field.getValue() != null && field.getValue().equals("true")) return "Yes";
else return "No";
if (field.getValue() != null && field.getValue().equals("false")) return "No";
return null;
case "radiobox":
return field.getValue() != null ? field.getValue().toString() : null;
case "checkBox":