I have used an image in the form which is used to auto submit on the click. docu

Certified Senior Developer
I have used an image in the form which is used to auto submit on the click. document.forms[0].submit();
Now in the form, before I click the image, i have certain fields to be entered. I enter them and save them into an ac! param and in data i am mapping them to the pv!.
But when i see in the instance, pv!'s have no values assigned to them.
May i know how to set the values to pv! params??
I think cos i am using script to submit the dorm, the data tab assignments are not happening.
May i know the solution for this?...

OriginalPostID-63995

OriginalPostID-63995

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    Christine: I did that initially and it dint work. So later i tried to map the vlues in output tab, which also failed. When I gave an alert in onSubmit() event, even that dint get alerted which means it was not actually submitting the form.
    So i had to use the following code which works fine:
    getObject('buttonId').parentNode.firstChild.click();
    But for this to work i need to have a button on the form.
Reply
  • 0
    Certified Senior Developer
    Christine: I did that initially and it dint work. So later i tried to map the vlues in output tab, which also failed. When I gave an alert in onSubmit() event, even that dint get alerted which means it was not actually submitting the form.
    So i had to use the following code which works fine:
    getObject('buttonId').parentNode.firstChild.click();
    But for this to work i need to have a button on the form.
Children
No Data