Home › Forums › Quform WordPress › Chinging button text in quform_pre_display_
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 ?
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.