Skip to content

Instantly share code, notes, and snippets.

@icerge
Last active October 11, 2018 22:07
Show Gist options
  • Save icerge/6d30cbb8cab0068c0a8ab04680f43937 to your computer and use it in GitHub Desktop.
Save icerge/6d30cbb8cab0068c0a8ab04680f43937 to your computer and use it in GitHub Desktop.

well, there is a nice book, listing many Jelly features. Although, I don't know if it is mentioned there

Goal - validate form field values Alert message is get using 1 phase JAXL expression, JS: - prefix

function validateForm() {
 if (gel('first_name').value == '') {
  alert("${JS:gs.getMessage('Please input First Name')}");
  return false;
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment