Add example text on field

Manjunath Gaura
Tera Contributor

When the Financial Class field contains “Class A” or “Class B”, the “Dedicated Product Code” field

omust contain PXXXXX as code and must be replaced by the values entered by a user 

oremove any spaces before or after the text in the field.

 

Kindly help us how to add this on field

 

ManjunathGaura_0-1679052484347.png

 

1 ACCEPTED SOLUTION

Rahul RJ
Giga Sage
Giga Sage

@Manjunath Gaura you want to set placeholder value based on class field to want to update the field value.

1. To set a placeholder you can try 

var field1 = g_form.getControl('fieldName');
field1.placeholder ="Placeholder text";

2. if you want to update the field value you can try to replace the field value.

 

Please mark the answer correct/helpful based on Impact.

Regards,

RJ

View solution in original post

1 REPLY 1

Rahul RJ
Giga Sage
Giga Sage

@Manjunath Gaura you want to set placeholder value based on class field to want to update the field value.

1. To set a placeholder you can try 

var field1 = g_form.getControl('fieldName');
field1.placeholder ="Placeholder text";

2. if you want to update the field value you can try to replace the field value.

 

Please mark the answer correct/helpful based on Impact.

Regards,

RJ