Saltar navegación

[Resuelto] Cannot add url record

This support ticket is created hace 1 mes. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Este tema contiene 3 respuestas, tiene 1 mensaje.

Última actualización por Minesh hace 1 mes.

Asistido por: Minesh.

Autor
Mensajes
#2802622
Screenshot 2025-03-27 at 10.45.17 PM.png

Dear Sir/Madam,

I want to add below url to a custom field

<em><u>enlace oculto</u></em>

but I got error

Field "Nutrilite Product URL" not updated: Please enter a valid URL address.

Attached please find the custom field setting

#2802793

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - the URL you want to save does not standard URL format that is why its not saving the URL.

You should try to uncheck the validation URL format and that should allow you to save the URL.

#2803047

Dear Minesh,

Yes, your suggestion can by pass the validation but how can I ensure the end user not to place any URL, for example missing the https://

Best regards,

Kelvin.

#2803642

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Do you mean you want to validate the field and check if the field value is starts with enlace oculto? if yes:
=> There is no such feature available, you can write your own method and code to validate the URL field as per your requirement.

Here are few links that might help you:
- https://wordpress.stackexchange.com/questions/5102/add-validation-and-error-handling-when-saving-custom-fields
- https://wordpress.stackexchange.com/questions/356609/how-to-validate-custom-fields-for-a-custom-post-type-before-insert

If you need further assistance with any of your custom requirement, you are always welcome to contact any of our certified partners:
=> https://toolset.com/contractors/