Can I refresh a block after a Form submit with a custom code? I already use a custom code to refresh the page after Form submit but I want to refresh just one block, not the entire page.
The blockID I want to refresh is: tilefona-enimerosis-ipostatikou. The block type is the new Grid Block (type Horizontal card).
I add records to the block from the Form, not the TOPBAR BUTTON, because I need to use the steps and conditions from the Conditional Form. For the Form Ending I want to enable the Submit another option which refresh the form. That’s why refresh the entire page does not work for me.
Thank you very much, it is working great! I would like the form to be withing modal but I have it inside the page because in the form I have logics and filters based on details page record. From what I understand if I have the form in another page to open it as a modal then I can not do that.
You can do this by creating a new page with a list-details block that uses the same data source as your original item-details block, but without a top section or any other sections—just a form below it.
To access this new page within a modal, simply add a button in your original item-details block labeled “Open Details Page,” and set it to open in a lateral modal.
In this case you would use the second script I gave you, placed in the modal page settings.
Example here:
Note that a conditional form within a top bar button is a planned feature update.