Closed ontiuk closed 6 years ago
All shortcodes require the same closing tag, so you have to add the to the closing tag too, like [/text] or [/email*].
[text your-name]{input_before}@{/input_before}[/text]
[text* your-name]{input_before}@{/input_before}[/text*]
The as a required field tag e.g text or email* is corrupting the display of input group {} shortcodes.
[text your-name]{input_before}@{/input_before}[/text] works ok. The html is injected ok
<div class="input-group"><span class="input-group-addon">@</span><input class="wpcf7-form-control wpcf7-text form-control" name="your-name" type="text" value="" aria-invalid="false"></div>
[text* your-name]{input_before}@{/input_before}[/text] doesn't, {} shortcode isn't parsed and is echoed outside of the form-group tag.
Essentially no fields can be required when using input-groups. Tested with text, email, textarea.
Thanks