I am using Joomla inbuilt registration form and I added some fields to that form.
I need to add placeholder for my form but "placeholder" keyword is not working.
registration.xml
<field name="city" type="text" description="Enter your city"
label="City" required="true" size="10" filter="string" />
To add a placeholder, you need to add the hint
attribute, like so:
<field name="city"
type="text"
description="Enter your city"
label="City"
required="true"
size="10"
filter="string"
hint="Placeholder here" />
Hope this helps
Add this in edit.php for a particular field:
JHtml::_('formbehavior.chosen','#jform_fieldname', null, array('disable_search_threshold' => 0, 'placeholder_text_multiple' =>'placeholder Value'));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With