Forum Xamarin.Forms

Using a WebView in Xamarin.Forms, can I capture any data when a form is submitted?

lhannemanlhanneman USMember
edited October 2015 in Xamarin.Forms

This might not be possible for security reasons, but here's what I'm looking to do.

Within a Xamarin.Forms app, a user will load a HTML form via WebView. The idea is that these forms can be downloaded with the app, and filled out offline. If the user is offline, the HTML/CSS/JS will be loaded from a saved copy, and rather than submitting the form like normal via the WebView, I'd like to capture the data, or cache it somehow, and store it - preferably within the app and not the device's browser cache - so it is a little more permanant. Once a connection is available, the user could then load this cached/stored version of a web page and submit the form like normal.

I can see that there are two events associated with the WebView: Navigated and Navigating. However, neither of these seem to have any data from within the webview.

So is this possible, or is there an alternative option I'm not aware of?



  • NicholasTurnerNicholasTurner USMember, University ✭✭

    I assume you can override the protocol.

  • lhannemanlhanneman USMember

    Thanks for the reply, although I'm not sure what you mean. Can you elaborate?

  • ViniciusSchneiderViniciusSchneider USMember ✭✭

    I guess Nicholas refer to override de internal functions do load data from web, to pass the data to your application and don't just feed the view.

Sign In or Register to comment.