Why doesn't this work?

alert( $('#view_48 #field_172').val() );


This line does not work if field_172 is a multiple choice field.  Any ideas?


Thanks,


Wouter

Are you trying to generate an alert on detail view render. is it a multiple choice or a connexion field?

It just comes up with nothing....  No value whatsoever.



Try this :

 

$(document).on('knack-view-render.view_48', function(event,page) {
  alert($('.field_172 .kn-value').text());
});