Our current mobile app however is being developed using Xamarin Forms. All of our form controls use Telerik UI controls. We knew we wanted to replicate as closely as possible the implementation of the current app. The vehicle inspection is a critical piece of functionality, and it works extremely well. The challenge therefore would be to try to find something that replicated this same impementation in Xamarin Forms.
Whilst investigating how we would reproduce this I came across the WebView. This is a view for displaying HTML content inside the app. Unlike the OpenUri() method wich navigates the user to a web page using the app’s in-built browser, the WebViewdisplays HTML content “inside” the app. This sounded like what I needed.
There doesn’t seem to be much information anywhee on this particular topic. I looked through the usual suspects (Stackoverflow, Xamarin forums) but to no avail.
Here are the functions I wrote that enable me to retrieve the responses.
Hide Copy Code
private async Task<string> GetValueFromTextbox(string controlId)
private async Task<string> GetValueFromCheckbox(string controlId)
private async Task<string> GetValueFromRadioButton(string controlname)
private async Task<string> GetValueFromDropdownn(string controlId)
I have now got this working and am able to submit the responses that have been entered into the HTML generated vehicle inspection.