コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

trigger a function on text

Avatar

Level 4

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

1 受け入れられたソリューション

Avatar

正解者
Level 10

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 返信

Avatar

正解者
Level 10

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.

Avatar

Level 10