dynamichidden required checkbox
-
When generating a hidden dynamic field with by using the Formular-Tag Generator: dynamic hidden it is possible to check that this shortcode has to be required which results in adding a * after the shortcodes name. So instead of [dynamichidden …] it will become [dynamichidden* …]. But there isn’t a shortcode registered for dynamichidden* which result in displaying this shortcode as plain text in the form. For a hidden field this setting the required setting is useless because the input is prefilled by the shortcode e.g. CF7_get_post_var key=’title’ and therefore can’t be empty which is what the required setting should prevent.
So in my opinion there has to be a condition like this around line 217 so the code would change from
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
to<?php if($type != 'dynamichidden'){?> <label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label> <?php }?>
With this little change the required setting would be only available for the dynamictext shortcode and not for the dynamichidden shortcode.
So I would appreticate if you would add this little change in the next update.Kind regards
b.o.o. Alexander Behling Head webdeveloper at
mumbo jumbo media
- The topic ‘dynamichidden required checkbox’ is closed to new replies.