The CreatorCon Call for Content is officially open! Get started here.

Hide 'Submit' button when a variable is empty

Community Alums
Not applicable

Hi,

I have a requirement to hide 'submit' button in a form when a variable is empty which is auto populated using client script.

The variable name is adm_group_owner. 

I tried using alert using on submit but it applies for all and preventing the form to submit for request types.

saran20_0-1705648321858.png

 

 

Is there any way to ide submit button if a variable is empty when auto populated? How can I achieve this requirement. Please help?

 

Thanks,

Saran.

1 REPLY 1

Community Alums
Not applicable

Hi @subhadipkarma 

I have used your script with on change, but it is not working. Submit button is still showing. The on change variable 'adm_group_owner' is a reference type field. Is it because of this it is not working? Please provide your thoughts. I have attached the screenshot for your reference.

saran20_0-1705896195321.png

 

 

Thanks,

Saran.