We have a method in our c# code that takes a parameter of string type. We have loaded the interface asset in the experience successfully. What we are doing is we are scaning a QR code and passing it to c# method.
The issue is how we can bind the input text field to our method. Our method name is “HandleCodeScanned”. We want to bind it to the text filed. Screenshot is also attached. Are we doing it correctly? Thanks
the scenario is:
1: i have a input field in the experience and a single button. when i run the experience, by default the the input field should be highlighted (which is currently not)
2: data in the input field should be somehow bind with the button (which is currently not)
3: upon clicking the button, input data should be passed to c# code (which is currently not)
I have tried this, but the option to bind to a trigger parameter is not showing up when I click on the bind button for “sender”. I’ve looked through the online literature for how to to bind an action to a trigger parameter as well, but I haven’t found anything. Please share your technique for getting this binding.
You won’t find that trigger parameter unless your developer makes it available in his code.
That’s up to him to define what’s available to you in Composer.