onLoad client script to display field message on Html Variable type

Trupti Krishnam
Tera Contributor

I need to write an onload client Script on a HTML type variable called 'what would you like to do '

and the message is : -

Which department ? 
Has been identified and secured?
If so, which FY and/or future periods available?

 

i've tried it in the below way 

 g_form.showFieldMsg("u_v_todo ", "Which department?
        Has been identified and secured ?
        If so, which FY and / or future periods available ? );
}
 
it is not working can anyone help please !
1 ACCEPTED SOLUTION

@Trupti Krishnam Create one variable of type "Rich Text Label" and place it after your HTML variable as below..

JSiva_0-1755173138286.png

JSiva_1-1755173171442.png

 

View solution in original post

14 REPLIES 14

@Trupti Krishnam ,

 

Try this!

 

If this helps, please consider marking my answer as helpful/accepted — it motivates me to stay active in the community and also helps others find relevant solutions more easily.

Thank you!

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

Hi @Shashank_Jain  I 've tried the above script by replacing it with the my filed's value but i m not able to get what is expected. I 've written an onLoad Client Script

TruptiKrishnam_0-1755516475937.png

TruptiKrishnam_1-1755516540202.png

But i m not seeing the field msg populated on Load of the form I want the field msg to be populated one below the other on Demand Table

 

J Siva
Tera Sage

Hi @Trupti Krishnam 
What's the requirement? Are you trying to set the placeholder value or field message?
Regards,
Siva


Requirement is :

1. Create a variable 'what would you like to do ' of Type 'HTML' on 'dmn_demand' table 

when a new record is created in the table a field msg should be shown 

 

TruptiKrishnam_0-1755174095141.png

this msg should be shown below HTML Type variable

 

phil_bool_unifi
Tera Guru

Good to see you've found an answer that works for you.  That said, reading the message you're displaying, you may want to consider adding this as Help text that is displayed when the form loads, or even adding it as example text that appears in the field before the user starts typing.