trigger a function on text | Community
Skip to main content
New Participant
October 16, 2015
Solved

trigger a function on text

  • October 16, 2015
  • 2 replies
  • 612 views

Hi,

I need to check the text inserted into a richtext component. Is there a way to do it?

Can i do it via jsp or a js script inside a property?

For example i need a function that forces to uppercase the first letter when the user confirms the text.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

Hi,

Blur, Change, focus etc are the listerner that you can add to your Richtext,

Apart from that you can also add beforesubmit event listener to your dialog which will get fired when user click "Ok" on dialog.

KEEP In MIND,

Other fields like textarea, textfield contains only text, so it becomes easy to parse ...but in your case its richtext so you need to parse HTML+ TEXT

Let me know if you have any doubt.

2 replies

edubey
edubeyAccepted solution
New Participant
October 16, 2015

Hi,

Blur, Change, focus etc are the listerner that you can add to your Richtext,

Apart from that you can also add beforesubmit event listener to your dialog which will get fired when user click "Ok" on dialog.

KEEP In MIND,

Other fields like textarea, textfield contains only text, so it becomes easy to parse ...but in your case its richtext so you need to parse HTML+ TEXT

Let me know if you have any doubt.

smacdonald2008
New Participant
October 16, 2015