Hi all,

     I am building a mobile app. I have a popup in my app, where I have validation messages if the input field is invalid. If you click the button, I am checking for the validations and displaying the validation messages. But the validation messages are displayed only in the onchage of the field. 



     My expectation is that onclick of the button itself the validation messages for the input field should be displayed. Can anyone help me with this?


Thanks,

Gowtham

Hi,

can you share the screenshot (upload button-action) orelse share the oml?


Hi Vitheya,

     Thanks for your reply. PFA below

 Regards,

Gowtham

Hi Gowtham,

check your button event (onchange or onclick)?

Hi Gowtham,

     where you store the data? if its in  entity means why cant you use form widget.

Vitheya S wrote:

Hi Gowtham,

check your button event (onchange or onclick)?

onclick


Ramesh Kannan.v wrote:

Hi Gowtham,

     where you store the data? if its in  entity means why cant you use form widget.


I am using the form widget only

Gowtham wrote:

Vitheya S wrote:

Hi Gowtham,

check your button event (onchange or onclick)?

onclick


Hi,

If you dont mind, share the oml?



Vitheya S wrote:

Gowtham wrote:

Vitheya S wrote:

Hi Gowtham,

check your button event (onchange or onclick)?

onclick


Hi,

If you dont mind, share the oml?



PFA


Hi,

     Can anyone help me to solve the issue related to this post?


Regards,

Gowtham

Gowtham wrote:

Hi,

     Can anyone help me to solve the issue related to this post?


Regards,

Gowtham


Hi Gowtham,

You mean to say that you want validation messages on the click of the Upload button and not on the Onchange event?

Am I correct?

Thanks

Hi Priya,

    You are correct.


Gowtham wrote:

Hi Priya,

    You are correct.


Hi Gowtham,

Then the logic you have implemented in the onchange event, you have to replicate it in the onclick of the upload button. After the validation logic your logic to save will be executed.

Hope this is what you are expecting!!



Priya Khade wrote:

Gowtham wrote:

Hi Priya,

    You are correct.


Hi Gowtham,

Then the logic you have implemented in the onchange event, you have to replicate it in the onclick of the upload button. After the validation logic your logic to save will be executed.

Hope this is what you are expecting!!



Hi,

     As you can see in my OML file, I have set the action in the Onclick event of the button only.




Regards,

Gowtham