Page 3 of 3

checkbox group and checkbox item behaviour

Posted: Thu Jul 23, 2015 4:47 pm
by aggregate

Hi,

I am trying to use this logic in an onclick action but it does not seem to work. I always get a false response from the click. The "this" is a checkboxitem. Appreciate your guidance!

try{
alert('value check --'+Appery(this).find('input').is(':checked')); //always returns false
if(Appery(this).find('input').prop('checked')===false){ //always returns undefined
alert('add');
createGroupSession.execute();}
else if(Appery(this).find('input').is(':checked')===true){
alert('delete');
queryGroupSessionRecord.execute();deleteGroupSessionRecord();}
}
catch(err){
alert(err);}


checkbox group and checkbox item behaviour

Posted: Thu Jul 23, 2015 7:56 pm
by Illya Stepanov

Hi -

How exactly you are testing this?