The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Bug in frm_entries_footer_scripts hook

Labels

This Discussion is public

Notifications

I added the following code:

add_action('frm_entries_footer_scripts', 'set_custom_limit', 20, 2);

function set_custom_limit($fields, $form){

?>

jQuery(document).ready(function($){

    /* transform capatilize */

    $('.frm_capitalize input[type="text"]').change(function(){

    var val1 = $(this).val();

    $(this).val(val1.charAt(0).toUpperCase() + val1.slice(1));

    });

});

<?php

}

and getting the error right above the same script:

<b>Notice</b>: Undefined index: fields in <b>F:xampphtdocsprojectwp-contentpluginsformidableclassesviewsfrm-entriesform.php</b> on line <b>79</b>

Discussion closed.