want to get the script output in bold format

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 01:50 AM - edited 08-18-2023 07:23 AM
having a requirement,
want to get the output value in a Bold format on a onLoad script.
g_form.setValue('serial_number' , ''Sample 1: 123'');
any suggestions?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 07:49 AM
Hi,
Not entirely sure what you mean by this question, could you elaborate?
Also, found this article, will that help ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 08:28 AM
Hi @OlaN
On catalog form trying to set a value on a multiline text variable.
That value should be come in a bol format.
Trying to get with <b> </b>.
But not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 01:23 PM
Then, like @Aman Kumar S suggested, try using field styles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 08:00 AM
Hi, consider to use the onLoad Client script below:
var sn_field = g_form.getControl('u_serial_number');
sn_field.style.fontWeight='bold';
sn_field.value = 'Sample 1: 123';
It results to :