Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagejs
titleCustom Messages Within Cases
linenumberstrue
$.get('/api/case/' + caseid + '/data?getValues=Custom.val_a', function( data ) {

...


	

...

var value = data.data.customFields[0].value;

...


	

...

if (value < 100){

...


		$('#scriptingTarget').html('<div class="alert alert-danger"><i class="icon-info-sign"></i> The value is less than 100</div>');

...


	} else {

...


		$('#scriptingTarget').html('<div class="alert alert-success"><i class="icon-info-sign"></i> The value is over 100</div>');

...


	}

...


});