Increase limit for email actions

add_filter(‘frm_email_control_settings’, function( $options ) { $options[‘limit’] = 200; // Change 200 to your limit return $options; } ); add_filter(‘frm_form_action_limit’, function( $limit ) { return 200; //Change 200 to your limit } );Continue reading

Apply Alt text to uploaded images in a repeater

add_filter(‘frm_validate_field_entry’, ‘add_alt_text_form_images’, 10, 4); function add_alt_text_form_images($errors, $posted_field, $posted_value, $args){ if ( $posted_field->id == 14548 ) { // Change 14548 with the ID of your repeater field $image_field_id=14550; // Change 5844 to the ID of the file upload field $alt_text_field_id=14551; //…Continue reading

Validate email address

add_filter(‘frm_validate_field_entry’, ‘check_valid_email’, 10, 3); function check_valid_email($errors, $posted_field, $posted_value){ if($posted_field->id == 7762){ //change 7762 to the ID of the email field $postedemail=$_POST[‘item_meta’][7762]; //Change 7762 to the ID of the email field $alloweddomain = explode(‘@’,$postedemail)[1]; if (!filter_var($postedemail, FILTER_VALIDATE_EMAIL) || $alloweddomain != ‘example.com’)…Continue reading