Navigation überspringen

[Gelöst] Dynamic text in submit button?

This support ticket is created vor 2 Jahre, 9 Monaten. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von himanshuS vor 2 Jahre, 9 Monaten.

Assistiert von: Minesh.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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!