Replies: 3 comments
-
|
We’re doing a bit of cleanup and noticed this issue hasn’t had any activity for over a year, so we’ll close it for now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@Amalie-Wowern This issue was only raised last month. Please reopen. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @lesley-w Sorry for closing it to fast. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Which Umbraco Forms version are you using? (Please write the exact version, example: 13.4.0)
v13.5.0
Which Umbraco version are you using? (Please write the exact version, example: 13.5.2)
v13.9.2
Issue summary
The default fieldtype partials do not render the field alias, they render the Guid - which makes it really hard to retrieve an input field in javascript.
Looking at the partials code, eg for textarea, it renders
<textarea class="@Html.GetFormFieldClass(Model.FieldTypeName)" name="**@Model.Name**" id="@Model.Id" data-umb="@Model.Id" rows="@numberOfRows". .... etc but @Model.Name appears to be being set to the id of the field not the alias. <textarea class="" name="4609739d-0e57-44bf-bfaf-a8c68fef64a2" id="4609739d-0e57-44bf-bfaf-a8c68fef64a2" data-umb="4609739d-0e57-44bf-bfaf-a8c68fef64a2" rows="3" cols="20" data-val="true" data-val-required="This is a required field" aria-required="true"></textarea>Specifics
No response
Steps to reproduce
Install Umbraco Forms v13.5 in Umbraco v13.9.2.
Create a form
Render form and check the html being generated
Inputs will have name value as a Guid not the name/alias
Expected result / actual result
Model.Name should be set to the field's alias not the id. Or add a new data-alias attribute to display the alias.
<textarea class="" name="description" id="4609739d-0e57-44bf-bfaf-a8c68fef64a2" data-umb="4609739d-0e57-44bf-bfaf-a8c68fef64a2" rows="3" cols="20" data-val="true" data-val-required="This is a required field" aria-required="true"></textarea>or
<textarea class="" name="4609739d-0e57-44bf-bfaf-a8c68fef64a2" id="4609739d-0e57-44bf-bfaf-a8c68fef64a2" data-umb="4609739d-0e57-44bf-bfaf-a8c68fef64a2" rows="3" cols="20" data-alias="description" data-val="true" data-val-required="This is a required field" aria-required="true"></textarea>Beta Was this translation helpful? Give feedback.
All reactions