I have a field for users to enter a URL, but I want the entry to fail (upon Save is fine) if the URL contains a "?"

Does the module have that capability?

Use case: When my users enter a URL I don't want the URLs to contain the referrer details such as what you get when you go to a link from FB, for example: ?fbclid=IwAR09lbFjy0xaX0Xiw9DxbPNuT5wXOxPKHiS-yT5cH3z1C53Ub6xOBXR599Q

https://www.somesite.com/article?fbclid=IwAR09lbFjy0xaX0Xiw9DxbPNuT5wXOxPKHiS-yT5cH3z1C53Ub6xOBXR599Q

So, if they do enter that and then save, I would like it to fail. And, of course I will need the error message to read something like: "Invalid URL Remove "?" and all characters after."

Comments

System Lord created an issue. See original summary.

g089h515r806’s picture

Status: Active » Closed (works as designed)

It is not supported.