CMS Development

mikemiller
Participant

Make a dependent field required if answer is YES

SOLVE

I would like to have a Yes No radio button field on a form and if the answer is yes have a dependent field required. It seems the required flag only requires an answer on the Radio Button field. I tried setting both the radio button and the document field required but it let me submit without attaching a file. Specifically I am asking the question "do you have form xyz to attach?" if the answer is yes then I want the user to be required to attach a file. I have searched the community for awhile and do not see this question. Any help would be greatly apprecited

1 Accepted solution
TRooInbound
Solution
Key Advisor | Partner
Key Advisor | Partner

Make a dependent field required if answer is YES

SOLVE

Hi @mikemiller,

 

I just try out your problem on my portal and it's work perfectly 

 

look out GIF

Form Dependent TRooInbound.gif

 

let us know you done something else

 

Team TRooInbound

View solution in original post

0 Upvotes
4 Replies 4
TRooInbound
Solution
Key Advisor | Partner
Key Advisor | Partner

Make a dependent field required if answer is YES

SOLVE

Hi @mikemiller,

 

I just try out your problem on my portal and it's work perfectly 

 

look out GIF

Form Dependent TRooInbound.gif

 

let us know you done something else

 

Team TRooInbound

0 Upvotes
edjusten
HubSpot Employee
HubSpot Employee

Make a dependent field required if answer is YES

SOLVE

Hi @mikemiller . I can confirm @TRooInbound 's finidngs. You will need to require both fields. If the answer is No the form will submit. If the answer is yes,  the form will not submit unless a file is uploaded. 

 

Thank you,

Ed Justen


Did my post help answer your query? Help the Community by marking it as a solution
TRooInbound
Key Advisor | Partner
Key Advisor | Partner

Make a dependent field required if answer is YES

SOLVE

Hi @edjusten,

 

Thanks for supporting Smiley Very Happy

mikemiller
Participant

Make a dependent field required if answer is YES

SOLVE

Hi

Thanks for the response. I am not sure what I was doing wrong the other day but given your assurance it would work as I desired I returned to my form and tried again and it works the way I want it to.  I appreciate the help.