Multiline input not displaying initial content correctly

I have a multi-line input box (call this MB1) with a limit on the # of characters (say 100)

The text from this input is stored in a database field A (call this DBA)

Initial content for MB1 is set to DBA

I have 2 other multi-line inputs (Call these MB2) for users to add text data to field A, action for the submit button will check to ensure the number of characters currently in field A + number of characters from MB2 is <= 100.

A popup dialog box is displayed if the # of characters is > 100 to inform the user that they’ve exceed the maximum # of characters and they need to remove some before adding more

I have a tab interface using buttons, where either MB1 or MB2 is displayed on the page, when one is displayed / active, the other is hidden

Workflow for issue

  • I submit data from MB2
  • I see that the data from MB2 is correctly added into database field A
  • But when click the button to have MB1 displayed, it does not auto refresh and display the newly added data from MB2
  • It only displays the new data if I manually refresh the page
  • Since initial content for MB1 is set to DBA, I would expect every time MB1 is hidden and then displayed, it will refresh with data from DBA

You are not wrong to expect that. I think every developer does, except for the engineers who built the bubble multiline input element. So because of that, we need to put the multiline input element into a group and then use the action to reset group data which will refresh the multiline input element to update itself.

I believe the issue a simple fix to make the code for the multiline input element to update when the data is updated, but I don’t think Bubble has plans to do it as this issue has existed since multiline input element introduced.

And I do not think (I might be wrong, my memory hardly serves its purpose) that using the actions of reset input works for multiline input element.

Thank you! Resetting the parent group did the trick, and you’re correct, I tried reset input and that didn’t work.

1 Like