No Code Attached Yet
avatar FilMar61
FilMar61
5 May 2023

Steps to reproduce the issue

Create at least 2 custom fields for an article (same category and fieldgroup), one of type list or radiobutton with some values, the other of wathever type but set them as required and showon on a value of the list field.

Create a new article and choose te value for the list-field where the other (required) field is not shown.
Save the article.

Expected result

For me, I expected the article would be created and saved.

Actual result

I get an error:
The form cannot be submitted as it's missing required data.
Please correct the marked fields and try again.

But there are no marked fields to correct as they are hidden...

System information (as much as possible)

Joomla 4.3.1 - php 8.2

Additional comments

OK, the field is required but, for me, if it is hidden by the showon, it should be hidden for the validation also...

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
Title
custom fields with showon and required
custom fields with showon and required - No save possible when hidden
avatar FilMar61 FilMar61 - edited - 9 May 2023
avatar obuisard
obuisard - comment - 6 Jul 2023
avatar alikon alikon - change - 6 Jul 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-07-06 16:54:53
Closed_By alikon
avatar alikon alikon - close - 6 Jul 2023
avatar alikon
alikon - comment - 6 Jul 2023

@FilMar61 please continue the discussion on #39257

thanks for reporting

Add a Comment

Login with GitHub to post a comment