Skip to content

Instantly share code, notes, and snippets.

View djeet's full-sized avatar

Djeet djeet

View GitHub Profile
@djeet
djeet / gist:efbd4e6a6e875f12b192035d1a8f6797
Created June 15, 2016 08:46
Envoke Real Time Validation to Trigger Custom Message
/**
* Configure message and ID
*/
var error_message_custom = "___YOUR MESSAGE_HERE_____"; //Your custom error message
var current_field_id = 1; // Your Field ID
/**
* Script to envoke Real Time Validation to maintain error state
*/
all_validations[current_field_id].message = error_message_custom;
all_validations[current_field_id].validationFailed = true;
@djeet
djeet / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console