This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_shortcode('count_form_entries', 'count_form_entries_callback'); | |
function count_form_entries_callback( $atts ) { | |
$count = 0; | |
if ( !empty( $atts ) ) { | |
$atts = shortcode_atts( array( | |
'frm_id' => '0', | |
'frm_key' => '' | |
), $atts, 'count_form_entries' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('frm_display_form_action', 'check_entry_count', 8, 3); | |
function check_entry_count($params, $fields, $form) { | |
global $user_ID; | |
/* get the current user object */ | |
$current_user = wp_get_current_user(); | |
remove_filter('frm_continue_to_new', '__return_false', 50); | |
if( $form->id == 5 and !is_admin() ) { //replace 5 with the ID of your form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($) { | |
"use strict"; | |
$('#field_xxx').on('change', function() { | |
var total = 0; | |
if ( $(this).val().length > 0 ) { | |
const split_vals = $(this).val().split(", "); | |
var total = 0; | |
for (var i = 0; i < split_vals.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[if w3cfrm_post_content_type equals="Complete"][if w3cfrm_post_content_format equals="Block"] | |
<!-- wp:html --><!-- | |
/* Formidable Forms Accessibility Statement Generator | |
* By Victor Font Consulting Group, LLC | |
* | |
* https://formidable-masterminds.com/accessibility-statement-generator/ | |
* | |
* Author: Victor M. Font Jr. | |
* https://victorfont.com | |
* https://formidable-masterminds.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($) { | |
"use strict"; | |
/* self-executing function */ | |
( function($) { | |
/* this function is a workaround for an apparent Firefox bug | |
* where the default values are sometimes not being displayed | |
* the test form works Safari, Chrome, and Firefox Developer Edition. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($) { | |
"use strict"; | |
/* this script demonstrates a prototype integration for | |
* to display dynamic ChartJS graphs from Formidable Forms data. | |
*/ | |
function masterminds_calc_fv( deposit_value, interest_rate, monthly_contribution ) { | |
const values = [deposit_value]; | |
var chart_years = 30, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this code is a multi-selector variation of the example found | |
* in Formidable's knowledge base article: | |
* https://formidableforms.com/knowledgebase/javascript-examples/#kb-format-a-slider-field-value-as-a-currency | |
* | |
* it uses the Intl.NumberFormat function that's built into JavaScript. No external libraries required. | |
* to learn more about Intl.NumberFormat see: | |
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat | |
*/ | |
$("#field_id1 ~ .frm_range_value, #field_id2 ~ .frm_range_value").on('DOMSubtreeModified' , function() { | |
var field_id = $(this)[0].previousSibling.id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* directory search form custom where filter */ | |
add_filter('frm_view_order', 'masterminds_directory_search_filter', 10, 2); | |
/** | |
* masterminds_directory_search_filter() callback for frm_view_order filter | |
* | |
* this function is where you create custom SQL for any view | |
* | |
* @param array $query contains the SQL query created by Formidable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Developer Content | |
Template Post Type: post | |
*/ | |
/** | |
* Genesis Framework. | |
* | |
* | |
* |