Hi, there.
I would like to use a MessageHandler or something similar to trigger the “Browse” button in Perspective's FileUpload component when another button is clicked, but I'm not sure how to do this. Is this possible?
The flow is as follows:
Click on the button
→ Call MessageHandler with the script set up in the “Configure Events” of the button
→ Use MessageHandler to invoke the “Browse” button in the FileUpload component MessageHandler calls the “Browse” button event of the FileUpload component
→ judges that “Browse” has been clicked and launches an image selection dialog
.
If there is another alternative, I would appreciate it if you could let me know.
If this is not possible, I would appreciate it if you could tell me why.
Thank you in advance.
Thanks for the reply.
In my current application,
button click takes you from the home screen to the image upload screen
→ Click on “Browse” in the FileUpload component in the upload screen
→ Click on Select “Take Photo or Video”
→Take a photo
→Click “Use Photo”
→Upload complete
and so on.
At the request of a current client, the above process has been changed to However, current customers are asking if the above process can be simplified.
In response to this, the flow I have envisioned is what is described in the question.
In other words, I would like to simplify the process of clicking the Browse button and uploading images, but I am at a loss as to the feasibility of doing so.
I'm not sure I follow the whole flow.
What do you want your button to do that the file upload component doesn't already do ?
That would be the "Call MessageHandler with the script set up in the “Configure Events” of the button" part. What do you want this to do ?