Hi,
Is there a way to validated that the value added in a web link field is actually a link ?
At the moment, any value can be added...
https://academy.creatio.com/docs/8.x/no-code-customization/customization-tools/ui-and-business-logic-customization/element-setup-examples/fields-and-inputs/set-up-a-web-link-field
Thanks,
Damien
Like
You'd use a validator for that. Example is here: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/customize-page-fields/examples/implement-the-field-value-validation
There's plenty of examples of javascript regex to validate a URL online that you could use, depending on how you want to enforce a URL (such as must start with protocol http otr https or just allow www.domain.com, or even domain.com).
Sadly, there's no way to implement it globally for any/all link fields.
Ryan
You'd use a validator for that. Example is here: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/customize-page-fields/examples/implement-the-field-value-validation
There's plenty of examples of javascript regex to validate a URL online that you could use, depending on how you want to enforce a URL (such as must start with protocol http otr https or just allow www.domain.com, or even domain.com).
Sadly, there's no way to implement it globally for any/all link fields.
Ryan