Skip to content

Instantly share code, notes, and snippets.

View vfontjr's full-sized avatar

Victor M. Font Jr. vfontjr

View GitHub Profile
<script>
jQuery(document).ready(function($) {
"use strict";
/* change the calendar start day when date field receives foucus */
$('#field_zkbet').on('focus', function() {
/* get the radio button value */
var selected_day = $('input[name="item_meta[286]"]:checked').val();
<div id="frm_field_[id]_container" class="frm_form_field form-field [required_class][error_class]">
<div id="field_[key]_label" class="frm_primary_label">[field_name]
<span class="frm_required">[required_label]</span>
</div>
<div class="frm_opt_container" aria-labelledby="field_[key]_label" role="group">
[input opt=1 data-results="correct" data-question="2"]
[input opt=2 data-results="wrong" data-question="2"]
[input opt=3 data-results="correct" data-question="2"]
[input opt=4 data-results="wrong" data-question="2"]
[input opt=5 data-results="correct" data-question="2"]
Hello [confirm_name],</br>
</br>
This confirms that your appointment for your [confirm_vehicle] is scheduled for [if confirm_which_date equals="primary"][confirm_date_of_service][/if confirm_which_date][if confirm_which_date equals="alternate"][confirm_alternate_date_of_service][/if confirm_which_date].</br>
</br>
Thank you!
.star-rating-hover::before {
content: '\e9d9';
color: #F0AD4E;
}
.frm-star-group input[type="radio"]:checked + label::before,
.frm-star-group:not(.frm-star-hovered) input[type="radio"]:checked + label::before {
color: #F0AD4E;
}
<script>
jQuery(function() {
"use strict";
$( document ).tooltip();
});
</script>
@vfontjr
vfontjr / css_file.css
Last active November 13, 2020 13:41
Source code for https://formidable=masterminds.com/change-input-background-color-based-on-other-field-value/
<style type="text/css">
.color_red {
background-color: red !important;
color: #fff !important;
}
.color_yellow {
background-color: yellow !important;
color: #000 !important;
}
<?php
add_filter('frm_where_filter', 'custom_view_where_clause', 10, 2);
function custom_view_where_clause( $where, $args ) {
/* we'll use $view_id and field id to drive the switch statement below
* why a switch statement? switch statements provide better performance than ifs
*/
$view_id = $args['display']->ID;
$field_id = $args['where_opt'];
<script>
jQuery(document).ready(function($) {
"use strict";
$( function() {
// activate the tooltip function
$( document ).tooltip({
position: {
my: "center bottom-20",
at: "center top",
<?php
add_filter( 'frm_inbox', '__return_empty_array' );