Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Contact form 7 - Wordpress

Tags:

php

wordpress

I am creating a contact form using the 'Contact form 7' plugin. There is a facility to add placeholder text to all fields however you can't add this placeholder to a dropdown menu.

Does anyone have any ideas?

Maybe target the list with Javascript but add the disabled attribute to that value?

Thank you! Scott

like image 431
Scott Avatar asked Aug 17 '26 01:08

Scott


1 Answers

You can use first_as_label option of contact form 7 to make some text as placeholder, so that first option will convert as disabled option with placeholder text.

[select* Test first_as_label "Placeholder goes here" "Option 1" "Option 2"]

https://contactform7.com/checkboxes-radio-buttons-and-menus/

like image 53
charan kumar Avatar answered Aug 18 '26 16:08

charan kumar