Score:0

Render fields and results of a custom form in two separated regions

de flag

I have a custom form (created programmatically). I want to keep the AJAX submission mode. I would like to render the fields of the form in a region SIDEBAR and then the results in the region CONTENT.

I was thinking about putting in two separated blocks but I have no idea on how to handle this in terms of template and result synchronization.

Does anyone have any idea on how to do this? Is it possible?

4uk4 avatar
cn flag
You are mentioning AJAX, then this is no problem. You can target with AJAX any DOM element of the page, also in a separate block. For a non Ajax fallback your result block would need to fetch the submitted data from where you have submitted it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.