TStip
New Member
I have tried the following:
Form: testformulier
Group: testgroep
Element1: waarde1 (plugin = field default = 0)
Element2: waarde2 (plugin = field default = 0)
Element3: bestand (fileupload plugin)
At waarde1 I used these settings in JavaScript tab:
Action = Load
Published = Yes
code =
if ($('testformulier___waarde1').get('value') == 0) and ($('testformulier___waarde2').get('value') == 0)
{
$('testformulier___bestand').hide();
}
else
{
$('testformulier___bestand').show();
}
If this works, I would also add this to the action = change
But when I now open a new form, with waarde1=0 and waarde2=0, bestand (element3) remains visible.
What am I doing wrong?
Thanks in advance ...
Form: testformulier
Group: testgroep
Element1: waarde1 (plugin = field default = 0)
Element2: waarde2 (plugin = field default = 0)
Element3: bestand (fileupload plugin)
At waarde1 I used these settings in JavaScript tab:
Action = Load
Published = Yes
code =
if ($('testformulier___waarde1').get('value') == 0) and ($('testformulier___waarde2').get('value') == 0)
{
$('testformulier___bestand').hide();
}
else
{
$('testformulier___bestand').show();
}
If this works, I would also add this to the action = change
But when I now open a new form, with waarde1=0 and waarde2=0, bestand (element3) remains visible.
What am I doing wrong?
Thanks in advance ...