Hi @mateusz_pateam ,
Here is an example, how you can do based a Boolean field:
$(document).ready(function () {
$("#myYesNoField").on("change",handleFieldVisibility);
handleFieldVisibility();
});
function handleFieldVisibility() {
var varChange = $('#myYesNoField').val();
if (varChange == 1) {
$('#myFieldName').parent().parent().show();
}
else {
$('#myFieldName').parent().parent().hide();
}
}
For more details, please check out this article which explains in detail how you can hide/show different controls in Power Pages using jQuery.
Thanks,
Saud
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.