PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Message with maximum numbers of characters is shown multiple times

  1. cohen
    Member

    On my page I use the same gravity forms via shortcode multiple times.
    With the top form the user is able to add an entry.
    Below this form the user can change previous entries with prepopulated forms.

    Theres is the problem, that the message showing the maximum number of characters for a text field is shown multiple times.
    I know that this bug was reported and should have been fixed with version v1.6.3.2.
    Today I updated to v1.6.4.2.1 and the problem is still there.
    See http://yellowcapp.synology-ds.de/concappt/BackendConcappt for an example (be patient...this is my development environment).
    You have to login with user: "test" and password: "test.
    Below the input field "Name" you can see the multiple messages.
    Is there any possibility to download version v1.6.3.2 of the plugin, so that I can test against it?

    With kind regards,
    Edwin

    Posted 13 years ago on Thursday May 17, 2012 | Permalink
  2. Edwin, when you preview that form from within the formbuilder preview do you see the repeated messages?

    Posted 13 years ago on Thursday May 17, 2012 | Permalink
  3. cohen
    Member

    No, the repeated messages are not shown in the formbuilder preview. They just appear if there are more than one form on the page.
    In the example (see link above):
    If I delete the users entries, so that there is just one form on the page, the messages are shown one time only, too.
    The error just happens if there are more than one form on the page.
    Perhaps one necessary information.
    I set the form via shortcode ([gravityform id=# name=TEXT title=boolean description=boolean ajax=boolean])

    Posted 13 years ago on Thursday May 17, 2012 | Permalink
  4. I noticed that all 3 of your forms have the same ID (gform_wrapper_10). How exactly are you inter-linking these forms? Are you using custom code, do they have any relation to each other? I've never seen more than 1 of the same form ID work on a single page before. So this could be related.

    Posted 13 years ago on Thursday May 17, 2012 | Permalink
  5. cohen
    Member

    Here is the short piece of code how I add the forms to the page:
    foreach($allPosts as $aPost){
    $BE_ID=$aPost->ID;
    if($BE_ACTION!=$BE_ID){
    $del_Link=add_query_arg(array('be_action' => $aPost->ID));
    $content_string='[gravityform id="'.$form_id.'" name="Kontakt" title="false" description="false"]';
    $content_string.='[button link="'.$del_Link.'" type="icon" icon="warning"]löschen[/button]';
    echo do_shortcode($content_string);
    }
    else
    deleteBEPost($BE_ID,$post_type);
    }

    $BE_ID is a global variable, I save the current post ID in.

    As you see I iterate through all posts of a certain type and add the corresponding form to the page.
    Via "add_filter('gform_pre_render', 'populate_data');" I populate the data to each form, using $BE_ID to set the data from the correct post for each form. It really works very goods. So far no problem.
    The only problem I recognized until now, is the problem with the counter message.

    Posted 13 years ago on Thursday May 17, 2012 | Permalink
  6. cohen
    Member

    By the way. It would be quite cool to extend the shortcode [gravityform id=# name=TEXT title=boolean description=boolean ajax=boolean] with a paramter ID, that is saved within a member of the form-object.
    This can the be used for simple prepopulating the data with the gform_pre_render-filter.
    Do you think something like that will be possible in one of the next updates?

    Posted 13 years ago on Thursday May 17, 2012 | Permalink
  7. To answer your initial issue, we currently don't support more than one of the same form to live together on a single page. This is a limitation with the way our fields are named and we don't have any plans to changing that.
    As far as passing form_meta information via the shortcode, what I would suggest is adding a hidden field to the form, and prepopulating it via the shortcode using the field_values properties. See the following doc page:
    http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically

    Posted 13 years ago on Thursday May 17, 2012 | Permalink