Hello @topsurfer
Thank you so much for using our plugin. If you want to do it only visible, you can enter the following style definition pair through the “Input Tag” section in the “Advanced Settings” tab of the field’s settings:
text-transform uppercase
If you want to make the value uppercase, not only display it as uppercase, you can follow the steps below:
Assuming the Single Line Text field is the fieldname123 (replace it with the name of the field in your form).
Insert an “HTML Content” field in the form.
Tick the “Accept advanced code in content as JavaScript code” checkbox in its settings.
Enter the following piece of code as its content:
<script>
fbuilderjQuery(document).on('change', '[id*="fieldname123_"]', function(){
this.value = String(this.value).toUpperCase();
});
</script>
Best regards.
Hi,
thanks,
in basically it seems to work as you wrote, thx!
I will use the html/java,
if my calculated field only contains a “simple” formula, like “fieldname3”,
the shown output is in upper characters. fine.
But my formula looks like:
IF(fieldname3!=”,IF(fieldname2!=”,tobase(fieldname4,10,16),’! Wert BUS-ID fehlt !’),’! Wert Basis-ID fehlt !’),
and here the output is still in lower (hex. characters)
Hello @topsurfer
You are describing a different use case. It is not a “Single Line Text”, you are describing an equation, and in this case, if you want to return the result as an uppercase text, you can simply make it uppercase:
String(IF(fieldname3 != '',IF(fieldname2 != '', tobase(fieldname4,10,16), '! Wert BUS-ID fehlt !'), '! Wert Basis-ID fehlt !')).toUpperCase();
Or, if you want to make uppercase only the hexadecimal result:
IF(fieldname3 != '',IF(fieldname2 != '', String(tobase(fieldname4,10,16)).toUpperCase(), '! Wert BUS-ID fehlt !'), '! Wert Basis-ID fehlt !');
Best regards.
Oh yes,
my mistake, wasn’t a Textfield, was a calculated-field.
But learn a lot, great tool!