How to edit grey color text in text boxes?

prasannakumard
Tera Guru

Hi Team,

We need to update the Grey color text on fields. Please fin the below screenshot for the same.

find_real_file.png

Please let me know how can we update the text and where it can be customized.

Thanks & Regards,

Prasanna Kumar

7 REPLIES 7

Hi Prasanna,


This is cause that "comment" is a placeholder you can also provide style to placeholder.



Please provide your feedback appropriately (Like, Helpful, Endorse AND/OR Correct) to help community.


Thank you!



Regards,


Jyoti


Shiva Thomas
Kilo Sage

Great news, I've heard that HTML Placeholder will be supported natively in Jakarta!


I've written a blog article on the subject: Great UX Trick: HTML Placeholders


Abbas7
Tera Contributor

you can also try with the Placeholder by creating a UI script and calling it from client script :




UI SCRIPT:


function u_addPlaceholderAttribute(variableName, hint) {  


  try{  


      var fieldName = g_form.getControl(variableName).name.toString();  


      if (Prototype.Browser.IE) {  


          fieldName.placeholder = hint;  


      } else {  


          $(fieldName).writeAttribute('hint', hint);  


      }  


  } catch(err) {}  


}  




Calling UI SCript from CLient Script:


u_addPlaceholderAttribute("Your Variable name here", "hint that needs to be populated");