How to remove placeholder text from form fields

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 3 weeks ago #157881 by Dave
I wish to remove placeholder text from form fields on donation form.

Which file to edit?  

Override, or core mod?

Thanks.

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 3 weeks ago - 2 months 2 weeks ago #157893 by Dave
Last edit: 2 months 2 weeks ago by Dave.

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago #157895 by Mr. Dam
Hi Dave,
Forum is public area, this is the place to discuss where everyone can reply you (not just us). If you want to have quickly reply, you can use Ticket system, because we prioritize dealing with real customers.
Come back to your question, currently, Joom Donation doesn't have option to hide Placeholder, let me know the field which you want to hide it, i will let you know the source code file.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 3 weeks ago - 2 months 2 weeks ago #157900 by Dave
My goal:  no placeholder text in any field of donation form.

Thanks.
Last edit: 2 months 2 weeks ago by Dave.

Please Log in or Create an account to join the conversation.

More
11 months 2 weeks ago #157954 by Mr. Dam
Hi Dave,
In next Joom Donation, we will remove the attribute "placeholder" in fields of Default Donation form, only keep them with "Simple" Donation layout
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 months 2 weeks ago #164093 by Dave
Hello.

How to remove placeholder text from form fields on donation form?

I am using Joomla 4.4.2 with JD 5.10.2.

I know how to perform and manage core edits, and also overrides.

I need to know which file, which line.

Thank you.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #164146 by Mr. Dam
Hi,
You can modify file: root -> administrator -> components -> com_jdonation -> libraries -> osf -> form -> field and modify the field type in that folder, for example: text.php
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Dave
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 months 2 weeks ago #164148 by Dave
Thank you Dam.
I will save this information for future use.

I found a different way that will persist after updates:

>templates>templatename>local>less>style.less :

#os_form .form-group .col-md-9 input::placeholder {
color: transparent;
}

#os_form .form-group .col-md-9 textarea::placeholder {
color: transparent;
}

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt