Skip to main content
All CollectionsAsite AppBuilderAppBuilder Sample Scripts
Show the user's input text in 'Bold' format when user is typing within a 'Textbox' control
Show the user's input text in 'Bold' format when user is typing within a 'Textbox' control

This is an AppBuilder Sample Script.

Updated over a week ago

Suppose there is a textbox with the field name 'inspector_name' and you want the user's input text to appear in 'Bold' when they are entering their text, you can use the drag and drop code editor to define a condition like below upon the 'onEnter' event:

Here are the steps to understand how you can define such a condition:

1. From the left panel, click on the option 'Custom Functions'. Select the third block called 'Setter' and drag it to center of the editor.

2. In the 'Control Name', select 'inspector_name'.

3. In the next option 'Property Name', select 'Control Font Weight'.

4. In the next option 'Value', select 'Bold'.

5. Once done, click 'OK' (at bottom right) to save the changes and exit the code editor, then save / publish the form design as needed. Once the form design is published and executed, the changes will be applicable for the new forms created under the related form type.



Did this answer your question?