Hiding fields in frontend form.

More
3 years 9 months ago #79697 by lomuyeh
Hi
Sorry I think this should be a bug. If it's not, let me know if I missed anything.
1. I hided an image gallery field in frontend form. (20210126_01_flexicontent.png)
2. When I open the frontend form, the field was hided but it shows jQuery errors. (20210126_02_flexicontent.png)
3. When I checked the code, the javascript of that image field still there. It can't find the field, so showed errors. (20210126_03_flexicontent.png)
I think the javascript of the field need to be hided too.

The version of Flexicontent is 3.3.9
Thanks,
Lomu
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #79698 by ggppdk
Hello

yes this is a bug,
since the JS should check if field is present

Removing the JS would be optimal
but we cannot do this since the field is not a "custom web component" that encapsulates both its HTML and its behaviour (JS)

The way to fix this now is to add check inside field's JS if field is present


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #79699 by lomuyeh
Hi
OK I see.
Can I do it in easy code modification?
Or just wait for the update?
Thanks,
Lomu

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.387 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline