Hi,
I have an XML that contains string values like “Yes” or “No”.
It would simplify the code in my data mapper if it was possible to set the type of a field to Boolean and it would automatically recognize values like:
Yes, No, True, False (not case sensitive)
At the moment this only works with 0 and 1 where it translates properly to a true or false value.
I know this is default JavaScript behavior but now I first have to store the value in a variable and do some checks on it.
e.g.
let myvar = data.extract(’./xpath’);
if (myvar && (myvar.toUpperCase() == “YES” || myvar.toUpperCase() == “TRUE”)) true; else false;
It would save me from going the JavaScript route and will just be able to leave the “Based on” on “Location” instead.
Not sure if this is possible as you need additional code for all booleans instead of passing it to a JavaScript engine but I still wanted to report it.