Dropdown, Search and hints changes

Hi all,
help-searchwithselection2.rp (116.0 KB)

I need help with my search field. It has a drop down and depending on the drop down the hint will change. I was wondering if you can do this?

Currently I just manually do the set text

And can we do some sanitisation depending on the dropdown? For instance if its ABN and its 11 digits. can you change the form field to max 11 digit.

Or do I need several form fields as search?

this is a very basic one
help-searchwithselection.rp (86.4 KB)

It sounds like you were on the right track with setting up the hint text. The built in hint text for text fields can’t be changed through interactions. However, because hint text style effect just turns the text gray and gets removed upon typing, we can create a custom version of this!

First, you’ll need to set the font color of the text field to gray. Then, add a focused style effect that has the font color to black like in the two screenshots below:

image
__

image

Then on the dropdown, create the conditional logic for each of the options. You already had the start of this setup done but if you add more options it will look like below:

You can also set a max character limit to text fields by adding a “Text Changed” interaction like in this screenshot:

image

Then you can add conditional logic as desired if you only want this limit to apply to certain droplist options. You can take a look at the properties and expressions within Axure RP by navigating to our reference pages linked below:

I’ve made these edits to your file and reattached it for your convenience. Hope that helps and if you have any questions please let us know.

help-searchwithselection - Axure Edit.rp (88.1 KB)