joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.73k stars 3.64k forks source link

Custom fields with showon - obsolete data #40548

Open FilMar61 opened 1 year ago

FilMar61 commented 1 year ago

Problem identified

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

brianteeman commented 2 months ago

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.