Meris4x4 Posted February 4 Share Posted February 4 I am currently in the process of developing custom profile field to store members' Facebook profile and Facebook group links information. While the implementation of these fields is straightforward, I am trying to enforce a restriction wherein only specific URL leading to Facebook is accepted by the field. I'm wondering if there's a way to automatically fix entries when a member only puts in a Facebook handle without the full URL. I want it to add the necessary parts to create a proper link. Whether it's a exact link like www.facebook.com/username or https://www.facebook.com/groups/groupname/ just the handle "username" or "groupname" I require it to transform into the correct link like www.facebook.com/username or https://www.facebook.com/groups/groupname. Link to comment Share on other sites More sharing options...
teraßyte Posted February 4 Share Posted February 4 No, it's not possible to make the field automatically fix the inserted value. You'd need a custom modification for that. I think it would be easier to simply enforce the full URLs and show an error that mentions the correct format if the regex returns an error. Marc 1 Link to comment Share on other sites More sharing options...
Recommended Posts