Information Required ?
avatar hakanara
hakanara
10 Mar 2020

Steps to reproduce the issue

Create any component with a tag field like in joomla docs:

Do not define the "multiple="true" as it is an optional parameter.

Expected result

I expect the tag field to be optional when I don't define it as required. But when I don't choose "multiple" in the field parameters:

  1. It forces me to add the first tag in the options when I post the form. So posting an empty tag is not possible. This is only possible in multiple mode. Why not in single mode? I try adding <option value="">Please select your option</option> as in SQL field, but it does not work.
  2. In single mode, defining Nested or Ajax mode does not differ, it always behaves as a simple listbox with options in it.
  3. In single mode, the custom mode does not work as described in the docs: "custom (optional) if the ajax mode is chosen, setting this to deny will prevent users from adding in new tags." It is never possible to add a new tag item in the single mode no matter how you define the custom setting of the tag.

Actual result

As decsribed above, it forces the form to chose the first item of the tag and records it in the database even if you don't choose anything from the tags. It is never possible to leave this field empty in the single mode.

System information (as much as possible)

Latest all

Additional comments

I also couldn't manage to post the language field empty for all/any languages or post an asterisk as in article manager. The issue seems to be similar but I didn't dig into it much as it is OK for me to force any language or a default setting of the field at the moment.

avatar hakanara hakanara - open - 10 Mar 2020
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Mar 2020
avatar SharkyKZ
SharkyKZ - comment - 10 Mar 2020

I can't reproduce the issue. We have a field like this and the empty - Select Tag - option appears correctly.

<field
name="tag"
type="tag"
label="JOPTION_FILTER_TAG"
description="JOPTION_FILTER_TAG_DESC"
mode="nested"
onchange="this.form.submit();"
>
<option value="">JOPTION_SELECT_TAG</option>
</field>

avatar Quy Quy - change - 11 Mar 2020
Labels Added: Information Required
avatar Quy Quy - labeled - 11 Mar 2020
avatar jwaisner jwaisner - change - 11 Mar 2020
Status New Information Required
avatar Quy Quy - change - 15 Jun 2020
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2020-06-15 22:58:16
Closed_By Quy
avatar Quy Quy - close - 15 Jun 2020
avatar Quy
Quy - comment - 15 Jun 2020

Closing due to no response.

Add a Comment

Login with GitHub to post a comment