• Resolved Salar Gholizadeh

    (@salar6990)


    Hi.
    Thanks for the nice plugin and previous fix.
    I have a developer-related feature request.
    I think it is better to wrap each field with a parent div. I need this to hide some unnessesary fields quickly using css.

    something like this:

    <div class="wcfm_field wcfm_field_my_store_label">
      <p class="wcfm_my_store_label wcfm_title"><strong>My store Label</strong></p>
      <label class="screen-reader-text" for="wcfm_my_store_label">My store Label</label> 
      <input type="text" id="wcfm_my_store_label" name="wcfm_my_store_label" class="wcfm-text wcfm_ele" value="My Store" placeholder="">
    </div>

    It would be also great to add before and after field actions and field filter instead.

Viewing 7 replies - 1 through 7 (of 7 total)
  • oh the actions already exist,
    I’ll use field_wrapper_start and field_wrapper_end actions but the problem is it doesn’t pass $field parameter to those actions.

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Thanks for get in touch with us.

    Well, I understand your requirement but certainly WCFM form fields generated by form field generator, not by written such HTMls.

    More importantly, such wrappers restrict many things.

    Anyway, you want to hide some fields and that’s very easy to do using PHP, no css required at all.

    Are you comfortable in PHP/WP coding?

    Also know me which fields you are looking to hide!

    Thank You

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Any update?

    Thank you

    Hello, Sorry I was off in the past days!

    what I mean by my comment above is this:
    wc-frontend-manager\includes\libs\php\class-wcfm-fields.php

    line 1134
    change do_action(‘field_wrapper_start’);
    to do_action(‘field_wrapper_start’ , $field);

    and on line 1251
    change do_action(‘field_wrapper_end’);
    to do_action(‘field_wrapper_end’ , $field );

    this helps for better third party plugin compatibility.

    your question: Are you comfortable in PHP/WP coding?
    – Yes, Absolutely

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Really sorry, I didn’t want to mean that.

    Anyway, WCfM 5.0.10 has just released and we have made those changes 😊

    Please know me if you required any other help from our end.

    Thank You

    I’m glad 🙂
    Thank you for your quick update and great support 😊

    Plugin Author WC Lovers

    (@wclovers)

    You are welcome 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Improvement for fields’ is closed to new replies.