Search box - dynamic size

I was able to make the search box bigger as soon as the curse is pressed in the text field but how do I make the size revert back to the original size when the cursor clicked away from the search box? search-test.rp (46.8 KB)

Hi uxaxure-user123!

One way to do this is to create an OnLostFocus event. This event can fire after focus has been set on a widget, and then the cursor is clicked away from the widget, or another widget gains focus.

To allow the search box to return to its original size and position on the page, you can use a Set Size action, and have the widget anchor to the top left:

search-test-onlostfocus.rp (47.0 KB)

I hope this helps!

This is perfect. Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.