Disable submit on preview
[MAILPOET-2602]
This commit is contained in:
committed by
Jack Kitterhing
parent
8885003b41
commit
8bdb64a97b
@ -109,6 +109,7 @@ class Forms extends APIEndpoint {
|
|||||||
public function previewEditor($data = []) {
|
public function previewEditor($data = []) {
|
||||||
// html
|
// html
|
||||||
$html = $this->formRenderer->renderHTML($data);
|
$html = $this->formRenderer->renderHTML($data);
|
||||||
|
$html = str_replace('type="submit"', 'type="submit" disabled', $html);
|
||||||
|
|
||||||
// convert shortcodes
|
// convert shortcodes
|
||||||
$html = WPFunctions::get()->doShortcode($html);
|
$html = WPFunctions::get()->doShortcode($html);
|
||||||
|
Reference in New Issue
Block a user