@Greenozaur,
This is a tricky one! I think I found a solutionālook at Page 2 of this updated file and see if it works for you. (Caveat: I did this on Windows 10 system with Chrome browser.)
input field - file type.rp (74.7 KB)
Your approach makes senseāusing the OnTextChange event to evaluate the filenameāthe text content of the File Input Field. I noticed you were testing if the text value did not equal āNo file chosenā --but that is not actually the text value of the input field. Rather, that is its āhintā value. The actual default text value is blank. A reliable way to test if text is ānot blankā is to evaluate the ālength of the widget valueā; if it is greater than 0 (zero) it must not be blank. However, fixing this still did not work. it turns out the OnTextChange event never gets fired, even after the text does change, so nothing happens. This to me appears like a bug.
To figure out what was going on, I assigned ādummy actionsā to all the possible events for the File Input Field and then in the browser, viewed the Axure Console and started the Trace. It turns out that when user clicks on the File Input Field, it gets focusāfiring the OnFocus event, which makes sense. This also triggers the OS file dialog to open, and the input field loses focus (firing its OnLostFocus event)āalso makes sense. When the OS file dialog closes it returns focus to the File Input Field, once again firing its OnFocus event. So, I thought, āAha! just use the OnFocus event to test the length of text value.ā but this also failed. It takes some small amount of time after the focus is returned for the OS and/or browser to change the text on the File Input Field, so if the OnFocus event evaluates its own text, it will not yet have changed. So, we have to wait a little bit for the filename to come in before testing the text value. To accomplish this, I added a āWait 1000 msā and then an action to āMove success by (0, 0)ā. This wonāt result in any actual movement but it will trigger the OnMove event for the āsuccessā widget, which you want to show if a file has been chosen (correct?) The OnMove has a condition to test the length of the āfile nameā widget text value, and if greater than zero, show itself and enable the CREATE button. ā¦Whew!
To make this more reliable and add some feedback for the user, you could extend the Wait duration and show a little rotating ābusyā GIF or text with āUploading fileā¦ā or something.