cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic workflow form

wadsok
Champ in-the-making
Champ in-the-making
Hello,

I have a form with file upload and text field.

What I want is to make text field mandatory if any file is selected.

What I already tried - doing it via associations (doesn't work), trying to create "event" on file upload by creating custom field validator for file upload field and changing text field mandatory flag from there (not documented good enough, all relevant questions in forum not answered. Though this is still promising.)

Can anyone suggest a way to do what I want with JS? Examples are highly appreciated (though honestly - not expected).

If no one has suggestions: Is it possible to do it via validator on file upload field? Any example on how I could create custom field with both fields in it and action I want?
2 REPLIES 2

wadsok
Champ in-the-making
Champ in-the-making
Anyone?

aaditvmajmudar
Confirmed Champ
Confirmed Champ
If I understood correctly, you have one form and in that you have one file uploader and one text field.

Now initially that text field is not mandatory but you want to make that text field mandatory if any file from uploader uploaded.

Right?