Forum Discussion

Laura_Taylor's avatar
Laura_Taylor
Community Member
2 months ago
Solved

Changing trigger on a text entry from default?

Hi guys, 

 

I'm sure this is a super simple query, but it's just eluding me at the moment.

 

Can I change the trigger on a text entry field so that instead of 'When text entry loses focus' blah blah blah, it can be triggered when the user enters their text and hits 'enter' on their keyboard instead? So they don't need to click outside the text entry field for it to trigger?

 

Thanks in advance!

  • You can't change or delete the "When text entry loses focus" trigger directly, but you can disable it. However, disabling this trigger may not be practical unless the text entry field's value is being set through external JavaScript code.

    "Text entry losing focus" refers to the situation where the cursor (focus) in the text input field moves away, usually because the user clicks elsewhere or another event causes the focus to shift (e.g., switching to another field, clicking outside the input box).

    If you want to update the text entry field’s value without losing focus, you'll need to use JavaScript to dynamically update the field's value as the user types or based on other events.

    Pressing the Enter or Tab key will shift the focus to another field and update its value, as long as the "When text entry loses focus" trigger is enabled. No special or separate trigger is needed in this case.

    Just keep in mind that pressing the Enter key may cause unwanted behavior in built-in interactions involving data entry fields, as it often triggers premature form submissions or other actions. You may need to handle this scenario explicitly to prevent such issues.

  • Nedim's avatar
    Nedim
    Community Member

    You can't change or delete the "When text entry loses focus" trigger directly, but you can disable it. However, disabling this trigger may not be practical unless the text entry field's value is being set through external JavaScript code.

    "Text entry losing focus" refers to the situation where the cursor (focus) in the text input field moves away, usually because the user clicks elsewhere or another event causes the focus to shift (e.g., switching to another field, clicking outside the input box).

    If you want to update the text entry field’s value without losing focus, you'll need to use JavaScript to dynamically update the field's value as the user types or based on other events.

    Pressing the Enter or Tab key will shift the focus to another field and update its value, as long as the "When text entry loses focus" trigger is enabled. No special or separate trigger is needed in this case.

    Just keep in mind that pressing the Enter key may cause unwanted behavior in built-in interactions involving data entry fields, as it often triggers premature form submissions or other actions. You may need to handle this scenario explicitly to prevent such issues.