Placeholder Change

swapnil29
Tera Contributor

Hi Everyone,

I'm Facing one issue related to Changing the placeholder Name and Value pair of Type in my custom table.
Here I want to use the Name and Value pair field for storing the Ip Address and Port so I'm using the Name Value pair Field where I can fulfill my functional approach but Placeholder which are given default by Name and Value of name/value pair field I want to update the placeholder.

swapnil29_0-1696530794716.png

Used Field type .

swapnil29_1-1696530866447.png


Thanks for taking the time to look into it.

 

 

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @swapnil29 

 

Refer the below Client Script to add in your table for your query.

 

function onLoad(){

	var field1 = g_form.getControl('fieldNameHere');
	field1.placeholder = "Your PlaceHolder";

}

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

swapnil29
Tera Contributor

Hi @Samaksh Wani ,

Thanks for Responding but I have already tried the above Approach it is working for the Text Field but Name Value Pairs its working. Can you please try to help on Name Value Pair Field updating the placeholder,

Thanks,
Swapnil