| @@ -176,9 +176,9 @@ | ||
| 176 | 176 | $wrapperDisplay = $otherIsSelected ? '' : 'display: none; '; |
| 177 | 177 | $otherAriaRequired = $otherIsSelected ? " aria-required='true'" : ''; |
| 178 | 178 | |
| 179 | 179 | $marginTop = $hasImageOption ? '20px' : '8px'; |
| 180 | - $otherInputHtml .= "<div class='ff-other-input-wrapper' style='{$wrapperDisplay}margin-top: {$marginTop};' data-field='{$fieldName}' data-required-message='" . esc_attr($otherRequiredMessage) . "'>"; | |
| 180 | + $otherInputHtml .= "<div class='ff-other-input-wrapper' style='{$wrapperDisplay}margin-top: {$marginTop};' data-field='" . esc_attr($fieldName) . "' data-required-message='" . esc_attr($otherRequiredMessage) . "'>"; | |
| 181 | 181 | // The id is what the validator points aria-describedby at when the |
| 182 | 182 | // free text is required but empty. |
| 183 | 183 | $otherInputId = $this->getUniqueid('ff_other_' . $fieldName); |
| 184 | 184 | $otherInputHtml .= "<input type='text' id='" . esc_attr($otherInputId) . "' name='" . esc_attr($otherInputName) . "' class='ff-el-form-control'{$otherAriaRequired} placeholder='" . esc_attr($otherPlaceholder) . "' value='" . esc_attr($otherValue) . "'>"; |