Webform Field Type Image

I have customized employee doctype to add attachment’s, with the preview of the same and then created Web Form for Onboarding employees. The Webform doesn’t get the Image Type Fields from Employee to Webform.

I want show what user has uploaded in the form. I tried customizing doctype “Web Form Field” I get error “You can’t set ‘Options’ for Fieldtype

I tried property setter though the Options change but that doesn’t get image fields from Employee doctype to webform.

Anyone using the webform with Image please help me on this.

Screenshot 2024-10-15 133745

You can’t add the option directly, but you can add it using the property setter. However, we don’t recommend adding options for the web form this way, as it could break the form and cause issues.

I did that, But that doesn’t get the Fields from Employee to Webform.

Already told you, that everything is managed by code, so you can’t change from the UI side. you have to check the code of webform.