How do I embed Java to select fields based on the value of another field?

Hi Webflowers,

How do create a hidden input into a form, through embed, but only input CMS images based on an option selected in another form which is imported as a field in the CMS through zapier.

I want to achieve the below, but don’t know the code.