Skip Navigation

[Resolved] Dynamic text in submit button?

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)

This topic contains 2 replies, has 2 voices.

Last updated by himanshuS 1 year, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2469553

I would like to change the text on the submit button based on data in the url parameter.

Can I do that?

  <div class="form-footer-navigation">
        <span class="change-later-text">Don't worry, you can always change later</span>
    [cred_field field='form_submit' output='bootstrap' value='View Target Skills' class='btn-primary toolset-home-v2']
  </div>
#2469719

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Yes, you can catch the URL param value using the Toolset View's shortcode [wpv-search-term param="url-param-name"]:

For example:

  [cred_field field='form_submit' output='bootstrap' value='[wpv-search-term param="submit_btn_text"]' class='btn-primary toolset-home-v2']

Where:
- submit_btn_text is the URL param name and it will display the text assigned to this param.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-search-term

#2473679

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.