PricingBlog

How to continually update forms especially with null

  • rscott-1199496570136178779

    Bishop

    1 year ago

    I am not sure whats going on here. You can see the behavior, the data even though its loaded for the book, doesn't appear on the form unless/until you switch to a different 'page'.

    There must be some way to tell the fields to refresh themselves when the data is all loaded.

    Perhaps whats happening is the questions are coming through in the repeat, but the answers had not fully loaded yet, I don't know or understand whats happening or how to fix it.

    maybe i have to not execute that repeat until all the data is loaded or somehow tell it to refresh when it is.
  • rscott-1199537190456279061

    Bishop

    1 year ago

    I answered my own question again.

    Since the answers are populating at some point after the component is rendered, I added this to make it update the variable that's bound to the textarea and it works well.
    1199537190221402112-Screenshot_2024-01-23_at_8.11.17_PM.png
    🔥1
  • I hope this helps someone
  • rscott-1199582241278398525

    Bishop

    1 year ago

    and then i decided that each one of my components should just load its own damn information by itself. that makes so much more sense.
  • lucasg-1199585954537685082

    Lucas G

    1 year ago

    lol I use both 🤔 I have APIs on pages and pass the data down to components for the most part and then a couple of components fetch their own things
  • rscott-1199594064148971530

    Bishop

    1 year ago

    the data that's static I am sending but the editable part, which comes from a different table anyway, and can get re-written by the user, I'm doing dynamically. I finally got it all working.

    I noticed that if something makes no sense you should shift reload the editor. It loses its mind sometimes.