Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Submit guidestate to REST endpoint


Level 7


I am trying to POST the guidestate to a rest endpoint but wondered if this is possible out of the box.

Stepping through the JSP code for the submit to rest endpoint submit action, I can see that there is the dataXML and the guidefieldsmap. The dataXML as expected is the full dump of the fields, but the guidefield map is not the same as the guidestate.

Is the guidestate available when submitting to a REST endpoint?

At the moment I have a hidden field on the form that I populate with the result of guidebridge getGuideState which seems a little cumbersome. I had a quick look at the guidebridge submit and couldn't see the guidestate being filled in.

Coupled with another issue I had with loading the dataXML I am a bit stuck for a reliable method to get data in and out of a form in the same format.



0 Replies