We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question, Suggestions

Auto add "http://" to the front of link fields if missing?


One field that I use quite often on client sites is a text field for links. I either leave a help note informing the clients to omit the "http://" in front of their link (because I've added it in the Perch template), or the opposite: leave a help note informing them that they need to remember to include "http://" in front of their link (because it isn't in the Perch template).

Is there any way in Perch to apply some logic to a field used for a link, one that would leave a field's contents alone if it spotted a "http://" in front, or that would add "http://" if it wasn't found? This would client-proof the link field as well as let me omit the help text and streamline content entry.


Franz Neumann

Franz Neumann 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You could create a field type to do that, certainly. It'd be pretty simple.