Question

4
Replies
1190
Views
Srinivas Bharat Komarina (KOMARINA)
Accenture
Senior System Architect
Accenture
GB
KOMARINA Member since 2012 105 posts
Accenture
Posted: April 5, 2017
Last activity: April 5, 2017
Posted: 5 Apr 2017 6:43 EDT
Last activity: 5 Apr 2017 11:21 EDT
Closed

Submitting HTML Form!

Hi,

Greetings. I am having a question around DOM element and clicking on a Start button which has the field associated with DOM element passed in as a parameter.

We have a Text Input, which has an "onChange" event which posts the value to memory. (e.g. field is .Customer.CustomerID - Text Input)

We have a "Start" button next to the Text Input which has "onClick" event which calls "Create New Work" and has ".Customer.CustomerID" passed in as one of the parameters to the flow called from Create New Work.

1. We have Pega integrated within a third party application. What they do is pass the Customer ID(1234567890) to the text input and immediately click on Start button, this is not invoking the "onChange" on TextInput but just invokes "onClick" on Start Button.

2. But when invoked Pega Standalone, if i replicate same as what the application does, that is immediately click on Start button i can see both my onChange and onClick being invoked.

From Point 1 we are having issues, .Customer.CustomerID that is being passed as a parameter is sometimes coming as NULL (value is taken directly from DOM element).

Now, my question is, when submitting the form which as a text input, Is there a chance for the value in DOM element to be lost? and that is why we see sometimes null being passed?

Any questions, please do let me know!

Regards,

Bharat

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.