When I downloaded the form you attached and ran it in preview from my laptop, clicking the button gives a guid.
When I publish that form to an existing form library - it gets published, (I have added some free text just to make sure.) But when I then Open the form and click the button nothing happens. - No error, no guid.
I have created a form which has qrules injected in it but q rules are not used and published that to an existing library. There is a button on the form which just uses rules and that works correctly when published.
In summary (cos I am getting confused....)
- Test Form with no q rules and button with rules works correctly when published.
- Test Form with q rules injected and button with ordinary rules works correctly when published.
- Test Form with q rules injected and button using q-rules to generate guid works correctly when published.
- Form from you generates guid when previewed on laptop. Does not work when published to SharePoint (no error.)
- Original form - no "code" just qrules gives errors.
Phew....