Posted: 18 Dec 2017 16:37 EST Last activity: 14 Feb 2018 14:24 EST
window.doSubmit() causing an alert in the mobile app submission
We are using a mobile app and in that we have 7 stages to finish the application/case for the customer. This application is running in both online and offline modes. Currently, the app is running fine in both online and offline modes and no issues. But when I added some UI changes (dynamic layouts and validations) on the last screen and I try to submit the screen I am seeing an alert "Please sign to finish the assignment.". Due to this alert I am unable to proceed further. The UI changes are pretty simple like 4 textboxes (mandatory) to capture the data from the user. We have signature control in our application and that control specific logic is not needed for my new changes. Not sure that this alert is coming from that signature control. I have checked the device logs and I see an err like failed to run the datatransform in the post action of the flow action. Not sure whether this err is related to my alert, new UI changes and all. Without my new changes I am able to submit the application without any errs in the logs. By the way, we have a JS function is used to submit the form data based on certain logic. From that JS function, we have window.doSubmit() is the final step to submit the data. Hoping that this doSubmit() is causing this alert and I am not sure on what is going in this doSubmit().
Can someone please help me on how to get rid of this alert from the screen?
***Edited by Moderator Marissa to update categories***
You can debug this client-side validation by connecting your mobile to desktop. Enable debugging in your mobile. In chrome browser, you can type chrome:inspect/devices and it will show your mobile. Then as we do for normal debugging, you can use the browser accordingly. Please see that attached screenshots for better understanding.
Please let me know in case you have any confusion in this. Hope this helps.
Also, I'm surprised window.doSubmit is working in your application. Offline form submission is much more complex than doSubmit. You may end up in unforeseen issues. I'd suggest you use regular 'Finish assignment' action to proceed in the flow.
We have validations like char limit for the fields, email validations, etc. All of them are not that big. I didn't get that "offline complaint" for the DT but the issue doesn't come with the current functionality. This functionality is applicable for online only. I am able to trace the instance from tracer and still checking the stream rules and other stuff to get any clue for this alert. Will keep you posted.
Except this alert specific details in Tracer, I am able to catch other screens' data. Not sure how to track on this alert() in the system using Tracer. Is there anyway I can catch it from the tracer? Pls help me.
alert() is purely a client-side function. You cannot trace it but you can see the execution on client when you connect your mobile device to laptop/desktop. You can debug mobile application like Rachit mentioned in previous post.