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
What you were expecting:
If I wanted to display some static data from a record from within an Edit page, I should expect to use a TextField as normal to output the data.
Where the source passed through is: backlinks[1].url.
React-admin version: 3.16.2
Last version that did not exhibit the issue (if applicable):
React version:
Browser:
Stack trace (in case of a JS error):
The text was updated successfully, but these errors were encountered:
andrico1234
changed the title
Cannot use TextField inside of an iterator within an a form
Cannot use TextField inside of an iterator within a form
Jun 25, 2021
@andrico1234,
Unless I'm misunderstanding, this is cover in the documentation
You have to use a FormDataConsumer inside an SimpleFormIterator in order to use a TextField
What you were expecting:
If I wanted to display some static data from a record from within an Edit page, I should expect to use a
TextField
as normal to output the data.What happened instead:
Code like this:
Displays the following:

Steps to reproduce:
You can find the repro case here
Run the simple-demo and access post 12
Related code:
It looks like a problem with the TextField component itself.
The value returned from
useRecordContext
isWhere the source passed through is:
backlinks[1].url
.The text was updated successfully, but these errors were encountered: