Javascript to split and paste stops events

Hello everyone,

I have a tricky problem that I don't have solution for now.

I have a web-block with 6 text inputs and in this Web-block I have a JavaScript to spilt the text and paste one character in each input text. In this Web-block I need a event to know what's the code was inserted by user, when we type is working fine but if we paste the value the event is not launched.


Someone have any idea to put this working?

Thanks, Paulo Torres

Solution

Paulo,

Can you try this solution?

Best Regards.

Teste.oml

Thanks Fábio. This solution works fine.

Hi @Paulo Torres

Can you share your sample OML?


Regards,

Luis

Hi @Luis Filipe Oliveira ,

Sure :) 

Screen7

Regards

Teste.oml

It's missing this:

I removed the unnecessary code and left only that screen. can you add these blocks?

Teste.oml

One of the widgets is not necessary. Here it is :)

Sorry and thanks

Teste.oml

Its keep asking for that WB. Use my OML Paulo, and add the WB there (copy-paste).

Hi Luis,

Sorry, it was my bad.

Now should works

Teste.oml

Hi Paulo,

If you move this to the screen it works :)


Attached is the OML.


Regards,

Luis

Teste3.oml

Hi Luis,

It's a workaround but like that I lost the widget functionality, I need to use in several screens :)

Thanks

Ok, I move it to the same block but to the start of the block and it appears to be working

Teste3.oml

Solution

Paulo,

Can you try this solution?

Best Regards.

Teste.oml

Thanks Fábio. This solution works fine.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.