Passing property value from Non-Autogenerated-HTML section
Hi,
I created a section which contains two buttons using HTML under HTML tab. On clicking those buttons i want a value to be updated to a property and move forward through the flow. I used the below code.
<input type="submit" value="Approve" id="Ap" onclick="<pega:reference name=".propertyName" mode="input"/>"></input> <input type="submit" value="Reject" id="rj" onclick="<pega:reference name=".propertyName" mode="input"/></input>
I got the below output:
Here i am getting "> near my approve button. so i didn't use this for reject button, as you can see in the above code. However both the buttons work fine. On clicking, those values are being passed to the clipboard and flow is working fine.
Is this the correct way to do this?
Is there any other way to pass value to a property on click of a button using HTML or JS?