Chinging button text in quform_pre_display_

Home Forums Quform WordPress Chinging button text in quform_pre_display_

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35419
    dirklaeremans
    Participant

    I am trying to change the text of the submit button, depending on the product status. So it can become “Buy now” or “Pre-order”, depending on the state of the product.

    I tried with

    $verzendknop = $form->getElement(‘quform_11_2’);
    $verzendknop->setConfig(‘label’, “Pre-order”); //submitText
    $verzendknop->setConfig(‘submitText’, “Pre-order”); //submitText

    but that does not seem to work. Is there another way to change the label on the submit button dynamically in quform_pre_display ?

    #35426
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy