If you look at the photo the Noncentz705 posted, the FileChooser object is selected, and the property sheet on the left of the phot shows the properties for the FileChooser. At the bottom, Noncentz705 has given the FileChooser object 'Id' property the name 'foo'.
In the same photo, the Event sheet shows the Condition and action. The action says:
i.e. whatever the id of the FileChooser is, that is what needs to be before the ".click();".
If Tom would fix the forum, it would make this much easier.
If you still don'tget it, I'l upload to my dropbox.
Try the following: https://www.dropbox.com/s/yfjvsq1cbcioulr/FileChooserButton.capx?dl=1