No Code Attached Yet bug
avatar FilMar61
FilMar61
5 May 2023

Problem identified

  • Create some custom fields for articles (all for same category and fieldset.

  • One of type list (or checkboxes) with some values.

  • some other custom fields with showon on different values of the list field.

  • Create a new article for the category.

  • choose a value for the list-field.

  • enter some data in the shown field(s).

  • change the value of the first list-field.

  • enter data in the newly shown field(s).

  • save the article.

When you reopen the article and change the value of the list-field again to the old value, the hidden fields are shown again with the data that was entered.
Also when you use JFilter or so, you can filter the article on that data.

Proposed solution

For me, at some point, at last just before saving the article, all entered data in, at that time, hidden fields should be trown away.
Hiding the field(s) regarding the value of an other field means that those fields have no proper meaning at that time and in that context.

Open questions

avatar FilMar61 FilMar61 - open - 5 May 2023
avatar joomla-cms-bot joomla-cms-bot - change - 5 May 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 May 2023
avatar FilMar61 FilMar61 - change - 9 May 2023
The description was changed
avatar FilMar61 FilMar61 - edited - 9 May 2023
avatar Hackwar Hackwar - change - 22 Aug 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Aug 2023
avatar brianteeman
brianteeman - comment - 22 Jul 2024

What you propose would create major issues with the way that core joomla works with showon fields. For example in the global config you may configure smtp mail and add all the details but decide that you want to test using php mail. If the data for the smtp mail fields was destroyed when you selected phpmail then you would need to reenter everything.

Add a Comment

Login with GitHub to post a comment