I’ve been struggling with this for a few hours and a research on the community hasn’t helped: I’m trying to bind a repeat region to a textarea, or, in other words, have a textarea display a repeat dataset.
How would one go about this?
It is actually very easy - just make the repeat region, give it an expression to repeat, place inside the textarea, add dynamic data binding to its value - and pick from the repeat regions data …
Yes, this is what I’ve been trying, but once inside the textarea, nothing is displayed. Would you be able to tell what I may be doing wrong based on the code below?
I’m sorry, I must be having a thick day - I’m not managing to get it to work. Is there a tutorial somewhere I can refer to, or would it be too much to ask for an example?
I have a table where I store emails, a particular field of interest is a column called ‘body’.
Every time a user generates a new email, it adds a new row and therefore a new entry for the field body.
When they do this, they have a field to input the “new” body, and I want to give them a second field where all the previous body entries are listed in reverse so we can append a history of previous body entries to that particular email.
Ideally, but this is secondary, I’d like to give them the opportunity to edit the “trail”, as this field is saved with modifications in the a different column too, hence wanting to display it on a text area.
Hi Jacques,
thanks for the effort, however in your example you create as many text areas as entries in the repeat, I’m looking to do the opposite, have one textarea that contains and displays a repeat region.
I appreciate the help!
Then select your form group row and add a horizontal forms > horizontal input form group.
Delete the input field and add Generators > Bootstrap 4 table generator in that location.
Not quite, something where your whole list would be inside the textarea.
In this mockup, the email trail textarea (2nd one) is what I’m trying to build - each line represent a different record:
That seems to be exactly what I’m looking for, thanks very much for pointing it out. My brain is too fried right now and I don’t see a full code excerpt there, but I’ll look into it tomorrow.
Thanks again.