Forums

Upload field must be Required on option Yes else Not required

Mgringo 07 Jan, 2015
Hi,

For example:

When clicking an option "Yes" an upload-field appears. That upload-field must be required.
[attachment=0]Schermafbeelding 2015-01-07 om 10.37.47.png[/attachment]

Only when clicking "No" the upload-field must disappear and not be required anymore.
[attachment=1]Schermafbeelding 2015-01-07 om 10.41.11.png[/attachment]

Point is that the upload-field stay's Required.

How can I manage this?

Any help is welcome!

MGringo
GreyHead 07 Jan, 2015
Hi Mgingo,

In CFv5 I thinkt hat you can do this either with JavaScript by changing the class of the file upload - or, probably better - by making the file upload required in the Designer but disabling it when it is hidden.

Bob
Mgringo 07 Jan, 2015

Hi Mgingo,

In CFv5 I thinkt hat you can do this either with JavaScript by changing the class of the file upload - or, probably better - by making the file upload required in the Designer but disabling it when it is hidden.

Bob



Hi Bob,

The file upload now indeed is Required. How can I disable this when its Hidden? Not in designer-mode as far as I can see ...

MGringo
Mgringo 07 Jan, 2015
Is this what you mean Bob?

[attachment=0]Schermafbeelding 2015-01-07 om 15.43.52.png[/attachment]
BNDragon 13 Jan, 2015
Hi MGringo,

Did you figure it out? I have a similar issue, but no solution.

BN
This topic is locked and no more replies can be posted.