bea
Active Member
Hi,
I can't find a solution to hide also the element 'comment_sec' in detailed view.
I remembered in F2 the _ro elements ...
I've found this snippet, but it doesn't work. I've tried to put this on different positions...
Cheers,
Bianka
I can't find a solution to hide also the element 'comment_sec' in detailed view.
I remembered in F2 the _ro elements ...
I've found this snippet, but it doesn't work. I've tried to put this on different positions...
Cheers,
Bianka
JavaScript:
if (!Fabrik.blocks.has('form_1')) {
form_1 = details_1;
}
JavaScript:
function hidecomment_sec(el) {
var elA = el.form.formElements.get('fab_cp1_line_tour___comment_sec');
var elB = el.form.formElements.get('fab_cp1_line_tour___security_check');
if (!Fabrik.blocks.has('form_1')) {
form_1 = details_1;
}
if (elB.getValue() === '') {
elA.hide();
return;
}
if (elB.getValue().toInt() <= '2') {
elA.show();
return;
}
if (elB.getValue().toInt() > '2') {
elA.hide();
}
else {
elA.hide();
}
}