You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mitchelllee222 opened this issue
Jan 9, 2024
· 1 comment
Labels
bugAn issue which has been identified as a bugstudio-uiAn issue that needs to be tracked by Studio Console teamui-formsissues related to UI builder forms
If applicable, what version of Node.js are you using?
No response
What operating system are you using?
Windows 11
Browser type?
Google Chrome
Describe the bug
I've created a simple ContactUs in my data models in Studio with FirstName, LastName, EmailAddress, and Message. This created a ContactUsCreateFrom component in my UI Library. I clicked Configure, selected the Message field and changed the Type to TextAreaField. The imported this into my local project. Now, when you open the component in the browser, you can type in all your values and select the Submit button. Submit is submitting the value into DynamoDB, however, all the fields except the Message field are clearing the values.
If I just use the default Type of TextField, the field clears out appropriately after selecting Submit.
Expected behavior
When the underlying data model property type is String and you change the Type of the field within UI Library for the created component to TextAreaField instead of TextField, on pressing Submit, the field would clear it's value after submitting.
Reproduction steps
Create data model with a String type property.
Open created component for model in UI Library in Amplify Studio.
Click Configure on selected component.
Click on field that represents String property from data model.
Change Type dropdown to TextAreaField from TextField.
Import into local project.
Run project with component showing on page and enter data in field.
Press Submit button on component.
Project Identifier
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
I was able to reproduce the issue, Marking as bug.
ykethan
added
bug
An issue which has been identified as a bug
ui-forms
issues related to UI builder forms
studio-ui
An issue that needs to be tracked by Studio Console team
and removed
pending-triage
An issue that is pending triage
labels
Feb 1, 2024
bugAn issue which has been identified as a bugstudio-uiAn issue that needs to be tracked by Studio Console teamui-formsissues related to UI builder forms
Before opening, please confirm:
App Id
arn:aws:amplify:us-east-1:188426401085:apps/d1kcgq6spbdji7
Region
us-east-1
Environment name
staging
Figma File Version (if applicable)
No response
Amplify CLI Version
No response
If applicable, what version of Node.js are you using?
No response
What operating system are you using?
Windows 11
Browser type?
Google Chrome
Describe the bug
I've created a simple ContactUs in my data models in Studio with FirstName, LastName, EmailAddress, and Message. This created a ContactUsCreateFrom component in my UI Library. I clicked Configure, selected the Message field and changed the Type to TextAreaField. The imported this into my local project. Now, when you open the component in the browser, you can type in all your values and select the Submit button. Submit is submitting the value into DynamoDB, however, all the fields except the Message field are clearing the values.
If I just use the default Type of TextField, the field clears out appropriately after selecting Submit.
Expected behavior
When the underlying data model property type is String and you change the Type of the field within UI Library for the created component to TextAreaField instead of TextField, on pressing Submit, the field would clear it's value after submitting.
Reproduction steps
Project Identifier
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: