Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Dynamic Buttons #575

Open
pranavksahu opened this issue Jun 19, 2017 · 3 comments
Open

Dynamic Buttons #575

pranavksahu opened this issue Jun 19, 2017 · 3 comments

Comments

@pranavksahu
Copy link

Hello,

I am trying the FORM to render dynamic User interface. I like my button actions to be dynamic too. Like when user clicks a button open an URL from a Textfield in the same screen. Or copy some data from a field and paste in another textfield in same screen. So looking for dynamic button actions. Is this something can be doable ? Appreciate any suggestions here

Thanks
--Pranav

@3lvis
Copy link
Owner

3lvis commented Jun 20, 2017

Hi @pranavksahu!

Sure, check the Payment demo, there we have a fieldUpdatedBlock, basically, after setting this block your app will be informed of any event on the fields.

In this demo the app gets informed when the pay button gets tapped.

Let me know if there's anything else we can do for you :)

@pranavksahu
Copy link
Author

pranavksahu commented Jun 20, 2017 via email

@3lvis
Copy link
Owner

3lvis commented Jun 20, 2017

Hi @pranavksahu,

I think you will have to do it in your own fork of Form and before the fieldUpdatedBlock method gets called to check for any of your registered methods.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants