diff --git a/templates/textfield.php b/templates/textfield.php index 72fe080654..136c1abaed 100644 --- a/templates/textfield.php +++ b/templates/textfield.php @@ -13,6 +13,11 @@ class="fm-element" id="get_element_id() ); ?>" value="" input_type ) { + echo " readonly onfocus=\"this.removeAttribute('readonly');\" "; + } + ?> + get_element_attributes(); // Escaped internally. WPCS XSS okay. ?> />