Discussion

3
Replies
2175
Views
BOBINJ37 Member since 2015 1 post
IBM INDIA PVT LTD
Posted: 4 years ago
Last activity: 4 years 7 months ago
Closed

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>&nbsp;<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?

 

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn