want to get the script output in bold format

Community Alums
Not applicable

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?

@OlaN  

5 REPLIES 5

OlaN
Giga Sage
Giga Sage

Hi,

Not entirely sure what you mean by this question, could you elaborate?

 

Also, found this article, will that help ?

Community Alums
Not applicable

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. 

Then, like @Aman Kumar S suggested, try using field styles.

Appli
Mega Sage
Mega Sage

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 :

Appli_0-1692370834917.png

 

Hope it helps