cancel
Showing results for 
Search instead for 
Did you mean: 

File type fields are not showing in admin edit form

File type fields are not showing in admin edit form

Hi Guys,

 

I have customized an event module for adding  two file type fields for upload files, At the time of adding data file type fields are showing in add event form and file name also storing into database but when I try to  open this form for edit data new created file type field does not show and loading does not complete.

 

Below is my ui componenet file type code

<field name="event_homepdf">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="source" xsi:type="string">Event</item>
                    <item name="label" xsi:type="string" translate="true">Home PDF</item>
                    <item name="visible" xsi:type="boolean">true</item>
                    <item name="formElement" xsi:type="string">fileUploader</item>
					<item name="required" xsi:type="boolean">false</item>
                    <item name="uploaderConfig" xsi:type="array">
                        <item name="url" xsi:type="url" path="eventmanager/event/upload"/>
                    </item>                  
                </item>
            </argument>
        </field>
		
<field name="event_gympdf">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="source" xsi:type="string">Event</item>
                    <item name="label" xsi:type="string" translate="true">Gym PDF</item>
                    <item name="visible" xsi:type="boolean">true</item>
                    <item name="formElement" xsi:type="string">fileUploader</item>
					<item name="required" xsi:type="boolean">false</item>
                    <item name="uploaderConfig" xsi:type="array">
                        <item name="url" xsi:type="url" path="eventmanager/event/gymupload"/>
                    </item>                  
                </item>
            </argument>
        </field>

Here is my complete module

https://github.com/webkeonsanjeev/EventManageer

1 REPLY 1

Re: File type fields are not showing in admin edit form

Hello @webkeonsanjeev 

 

If file type fields are not showing in the admin edit form in Magento 2, it may be due to one of the following reasons:

 

The field type is not properly configured in the ui_component form definition file.

The necessary data providers or form field configuration is missing.

The file field is not properly included in the form layout.

 

 

Hope it helps ! 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

 

 

 

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9