You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I have a structure that has optional fields defined.
If the structure does not have the field, the template library currently outputs the name of the field.
I can get around that by using the GlobalSettings like this.
GlobalSettings.getUndefinedFieldValueSubstitutionString = (s) => 'OOPS';
Which will correctly substitute OOPS. However, if I replace oops with '' (the empty string), it reverts to showing the template (presumably because of not checking === undefined).
Is there a way to tell the template language not to care?
Maybe a reference like ${must.be.present.until.here?} or
${may?.be?.completely?.missing?}
The text was updated successfully, but these errors were encountered:
Currently, I have a structure that has optional fields defined.
If the structure does not have the field, the template library currently outputs the name of the field.
I can get around that by using the GlobalSettings like this.
GlobalSettings.getUndefinedFieldValueSubstitutionString = (s) => 'OOPS';
Which will correctly substitute OOPS. However, if I replace oops with '' (the empty string), it reverts to showing the template (presumably because of not checking === undefined).
Is there a way to tell the template language not to care?
Maybe a reference like ${must.be.present.until.here?} or
${may?.be?.completely?.missing?}
The text was updated successfully, but these errors were encountered: