No Code Attached Yet
avatar antonbag
antonbag
3 Sep 2022

Steps to reproduce the issue

Insert a subform in an xml plugin or module:

		<field
			name="subformfield-name"
			type="subform"
			label="Subform Field"
			description="Subform Field Description does toggle"
			multiple="true"
			min="1"
			max="10"
			>
			<form>
				<field
					name="example_text"
					type="text"
					label="Example Text"
					description="Desc  does not toggle"
					/>
				<field
					name="example_textarea"
					type="textarea"
					label="Example Textarea"
					cols="40"
					rows="8"
					description="Desc does not toggle"
					/>
			</form>
		</field>

Expected result

The Toggle Inline Help button hides and displays the description in subform fields.

Actual result

The Toggle Inline Help button doesn't work in the subform fields

System information (as much as possible)

Joomla 4.2.1
Php 8.1

Additional comments

avatar antonbag antonbag - open - 3 Sep 2022
avatar joomla-cms-bot joomla-cms-bot - change - 3 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Sep 2022
avatar conseilgouz
conseilgouz - comment - 3 Sep 2022

Hi,

To make inline help button work in subforms, after your form line, add

<config> <inlinehelp button="show"/> </config>
In your case, it will become :

	<field
		name="subformfield-name"
		type="subform"
		label="Subform Field"
		description="Subform Field Description does toggle"
		multiple="true"
		min="1"
		max="10"
		>
		<form>
			<config>         
	                      <inlinehelp button="show"/>     
			</config>
			<field
				name="example_text"
				type="text"
				label="Example Text"
				description="Desc  does not toggle"
				/>
			<field
				name="example_textarea"
				type="textarea"
				label="Example Textarea"
				cols="40"
				rows="8"
				description="Desc does not toggle"
				/>
		</form>
	</field>
avatar antonbag antonbag - change - 3 Sep 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-09-03 16:17:44
Closed_By antonbag
avatar antonbag antonbag - close - 3 Sep 2022
avatar antonbag
antonbag - comment - 3 Sep 2022

That worked perfectly! Thanks!!!

Add a Comment

Login with GitHub to post a comment