Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By PragMike on
I’m trying to simply add a read-only field which will display phone numbers to contact in lieu of sending the form/email. I can create fields easily, of course, but am not sure where to set these to read-only rather than fields the user can enter into. In other words, another words, just like the my email address field works.
I’d also like to remove the preview button. I’ve tried to hide the preview field, but that didn’t accomplish this.
Any help on both items would be appreciated!
Comments
For this I usually just
For this I usually just create the details in a block, and put the block on the contact page.
Thanks!!
Awesome - thanks Jaypan. This is an easy way out for me.
The Preview Button?
Is there an easy way out of the preview button as well?
Thanks!
Hiding it with CSS would be
Hiding it with CSS would be the easiest solution. If you want to remove it entirely, it will require some coding. Are you comfortable with that?
Thanks Jaypan. Hiding it
Thanks Jaypan. Hiding it works,, although I’ll admit that I need to understand how to do that just as much as I’d need to understand how to change it in code. But As long as it doesn’t appear on screen, that works just fine. Can you point me in the direction of how to hide it please?
Thanks again for all your help!