Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    which row are you talking about? A row in the grid editor in the dashboard when you design a form, or a row in the front-end form in a table input row?

    In the grid editor, a bin icon/button is available on the 2nd and subsequent rows of a container.

    In the front-end the addition of a row (Add Row button) will also insert a delete icon in the form of a (x) at the end of the row for a user to delete it.

    Thread Starter mchoo1

    (@mchoo1)

    Thanks for the reply.

    I meant at the front end. The delete icon at the end of the row is really small. Anyway I can adjust it? Tried inspecting the element.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    the icon is a wordpress dashicon which is pure css, so yes, you could override it with your own css content if you want, or make it larger/darker.

    HI,
    First thanks a lot for the awesome plugin. I was looking such plugin for such as long time.i almost planned to write a php/jquery code but then I found this plugin.

    1. I implemented it as per one of youtube video and I can add textboxes but I don’t see any delete button. It looks like my theme is not loading dash icon CSS. Do you know what is the right way to load.?

    2.As per my requirement, I have a Email field which I want to validate when user click on send button. i.e I will be creating user with email address from the WordPress user admin. as per my requirement only registered user can send email to admin and save the data in the database. Could you please give me some idea which file I need to modify in your plugin and can I do it using child theme so that in future my changes don’t get overwritten. or do you have some other way to achieve this.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    First thanks a lot for the awesome plugin.

    please leave a review.

    1. I implemented it as per one of youtube video and I can add textboxes but I don’t see any delete button. It looks like my theme is not loading dash icon CSS. Do you know what is the right way to load.?

    can you send me a screenshot? The plugin loads dashicons for the front-end, so unless your theme is expressly dequeueing the dashicons, it should show up on your front-end. It may simply not be visible due to the bg colour of your page.

    2.As per my requirement, I have a Email field which I want to validate when user click on send button. i.e I will be creating user with email address from the WordPress user admin. as per my requirement only registered user can send email to admin and save the data in the database. Could you please give me some idea which file I need to modify in your plugin

    please use a separate thread for each question. this is very important, and something WordPress support forum moderators explicitly request. This way it allows others to find your question and my answer.

    To validate your email field with respect to your backend registered users, you want to use the validation filter post form submission (see the helper metabox in the form editor page).

    add_filter( 'cf7sg_validate_submission','validate_field_submission',10,3);
    function validate_field_submission($validation_errors, $submission, $cf7_key){
      /* $submission an array of <field-name>=>$value pairs one for each submitted field.
      tabbed/tabled sections fields have arrays as $values.
      tables within tabs have aray of array as values.
      if a value is not valid, return a <field-name>=><error message string> pair in the $validation_errors array. The sbumission process will be cancelled and teh user required to correct the field before re-submitting.
      $cf7_key unique form key to identify your form, $cf7_id is its post_id.
      */
      if('work-experience'!==$cf7_key ){
        if($submission['location-city'] === 'Chennai'){
          $validation_errors['location-city'] = 'location cannot be Chennai!';
        }
      }
      return $validation_errors;
    }

    1.Thanks for the quick response. I could resolve the dash icon issue using this plugin “Frontend Dashicons”. Now it is working fine. One more thing, is it possible to display delete icon in front of every new added row?. now it is appearing at last row itself.

    2. Sure , next time I will definitely open new thread for new issue. thanks for suggestion. let me try it.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Now it is working fine. One more thing, is it possible to display delete icon in front of every new added row?. now it is appearing at last row itself.

    not currently because the rows have to be added or removed sequentially.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deleting added row’ is closed to new replies.