Skip Navigation

[Resolved] Link to button with additional url

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2619217

Hello,
I found some problems:
1. how to create button which i call the data from custom type with additional url. So i have phone number field, but i wanna make a button with url wa.me/[phonenumber]
2. Hidden a field in backend (dashboard page)
I add Number field with default value is 5. I wanna make this field as a conditional to set maximum image multiple upload. Is it possible? if so, how to hidden that field in backend? i tried [data-wpt-id="wpcf-maks-upload"] { display: none } is not working.

Rgds.

#2619251
button-block-example.png

Hi,

Thank you for contacting us and I'd be happy to assist.

> 1. how to create button which i call the data from custom type with additional url. So i have phone number field, but i wanna make a button with url wa.me/[phonenumber]

- To achieve this, you can use the Toolset's 'Button' block and instead of using the dynamic URL option, add the link and the phone field's shortcode in the static link field.
( ref: https://toolset.com/documentation/customizing-sites-using-php/functions/#phone )


<em><u>hidden link</u></em> field='book-phone'][/types]

Example screenshot: button-block-example.png

Note: You'll replace 'book-phone' with your phone type field's slug.

> 2. Hidden a field in backend (dashboard page)
I add Number field with default value is 5. I wanna make this field as a conditional to set maximum image multiple upload. Is it possible? if so, how to hidden that field in backend? i tried [data-wpt-id="wpcf-maks-upload"] { display: none } is not working.

- I'm afraid, setting a conditional limit to a repeating field is not supported. You can either add a repeating image field, which can have an infinite number of entries or you can have non-repeating multiple image fields ( e.g. Image 1, Image 2, Image 3... etc )

regards,
Waqar