$scope.survey.pages[0].fields.push({
type:type,
required:false,
**checkbox:true,**
**ui:(this.checkbox)** ? 'checkbox' : 'radio',
quest:[{answer:''},{answer:''},{answer:''}],
id:'name'+(++$scope.name),
allowId:'allow'+$scope.name,
requireId:'require'+$scope.name,
otherId:'other'+$scope.name
});
This is what i want, if the checkbox property is true than in the ui i want to assign the text 'checkbox' and if not, radio...what am i missing?