This topic is locked
[SOLVED]

 Add Placeholder to a text field

1/8/2017 8:22:35 AM
PHPRunner General questions
romaldus author

In PHPRunner i want to use placeholders instead of tooltips.

Using bootstrap, it is easy to add a placeholder in a text field (just add placeholder="some text here") but i have no idea how to add this in phprunner project
As you see in the following screenshot, i add placeholder in firefox Inspect element and it worked perfecly in phprunner generated form.

Where to add placeholder in phprunner project?



W
wehaye 1/8/2017



In PHPRunner i want to use placeholders instead of tooltips.

Using bootstrap, it is easy to add a placeholder in a text field (just add placeholder="some text here") but i have no idea how to add this in phprunner project
As you see in the following screenshot, i add placeholder in firefox Inspect element and it worked perfecly in phprunner generated form.

Where to add placeholder in phprunner project?



Go to "JavaScript Onload Event" and add this syntax:

$( "#value_ContactName_1" ).attr("placeholder", "Please Enter Your Full Name");


And then say "Om telolet om".. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=81036&image=2&table=forumreplies' class='bbc_emoticon' alt=':)' />

jadachDevClub member 1/8/2017

Thanks root@panel!

This is perfect. I was trying to figure this out too.

romaldus author 1/8/2017

Thank you very much my friend. Perfect.

W
wehaye 1/8/2017



Thank you very much my friend. Perfect.


Same-same. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=81039&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Don't forget to mark Solved.

jadachDevClub member 1/8/2017

root@panel, you should add this to tips and tricks in all 3 forums.