Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Keypress event rule not working

Avatar

Avatar
Validate 25
Level 3
m_1985
Level 3

Likes

15 likes

Total Posts

56 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 1
Give Back
View profile

Avatar
Validate 25
Level 3
m_1985
Level 3

Likes

15 likes

Total Posts

56 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 1
Give Back
View profile
m_1985
Level 3

19-05-2016

Hi,

I want to fire an event based rule if anyone clicks on the Enter key(keyboard) to get the search results. Anyone successfully created event based rule with keypress "event type". I tried muliple options but rule is not working. Can someone help me on this. Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
spectaprod
Level 4

Likes

42 likes

Total Posts

53 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
spectaprod
Level 4

Likes

42 likes

Total Posts

53 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
spectaprod
Level 4

19-05-2016

This snippet just worked for me

if (event.keyCode == 13){ return true; }

Since your event is on #search I don't think you need to reference #search again in the Custom Condition for something like this

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 7
taciac
Level 7

Likes

17 likes

Total Posts

341 posts

Correct Reply

188 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 7
taciac
Level 7

Likes

17 likes

Total Posts

341 posts

Correct Reply

188 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
taciac
Level 7

20-05-2016

spectaprod wrote...

This snippet just worked for me

  1. if (event.keyCode == 13){
  2. return true;
  3. }

Since your event is on #search I don't think you need to reference #search again in the Custom Condition for something like this

 

 

Thanks for the quick reply!

-Tacia