Set a field to invisible through script.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello Mario,
Please, try the following code instead:
Please, try the following code instead:
Code: Select all
$('.fd_field[fd_name="V3Comments"]').hide();
Hello Forum,
We managed to set the visibility based on another fields value in the new/edit forms. But this does not seem to work in the display form.
Question: does anyone know how to get a value from a choice field in the display form?
Code used in the new/edit form:
window.$(document).ready(function() {
if(fd.field('NameChoiceField').control().value() != "Ja"){
window.$('.my-Table').hide();
}
So this line does not seem to work in the display form: fd.field('NameChoiceField').control().value()
Kind reards,
Mario
We managed to set the visibility based on another fields value in the new/edit forms. But this does not seem to work in the display form.
Question: does anyone know how to get a value from a choice field in the display form?
Code used in the new/edit form:
window.$(document).ready(function() {
if(fd.field('NameChoiceField').control().value() != "Ja"){
window.$('.my-Table').hide();
}
So this line does not seem to work in the display form: fd.field('NameChoiceField').control().value()
Kind reards,
Mario
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
- Geir Mathisen
- Posts: 16
- Joined: Sun Dec 22, 2013
What is the syntax to make the field visable again?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests