Question

window.doSubmit() causing an alert in the mobile app submission

Hi,

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?

Thanks,

Ravi Kumar.

***Edited by Moderator Marissa to update categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 18, 2017 - 11:00pm

Hi RaviKumar,

Trace the requestor using remote tracing to identify the exact place from where the alert is raised.
Basically the tracer will pause at place where you have the popup.

Search for Please sign to finish the assignment in designer studio. It would be perhaps a field value and check the referenced for the exact rule that is calling it.

You can check the issue with Data Transform error as well when you do the remote trace.

Thanks,
Ujjwal

December 18, 2017 - 11:36pm
Response to UjjwalShukla_GCS

Hi Ujjwal,

I am unable to find the remote instance for my mobile app (online) using the tracer.How can I catch the mobile app instance from the remote tracer using Designer studio? Can you pls tell me the steps?

Thanks,

Ravi Kumar.

December 18, 2017 - 11:57pm
Response to Ravi Kumar Pisupati

Hi Ravi,

We have debug option at SMA as well.
You can see all the requestor at Requestor management under SMA and can trace it from there as well.

Thanks,
Ujjwal

December 18, 2017 - 11:53pm

Hi,

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.

Regards,

Rachit 

December 19, 2017 - 12:04am

AFAIK, there is no such alert from platform. There is, however, a validation for attachments in offline when the attachment of a given category is not present in workobject when stage finishes. 

What kind of validations are you adding to the application when you see this error?

Can you also make sure your data transform is offline compliant?

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.

December 19, 2017 - 12:22am
Response to Vikas@Multichannel

Hi Rai,

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.

Thanks,

Ravi Kumar.

December 21, 2017 - 12:47am
Response to Ravi Kumar Pisupati

Looking at your previous posts, I assumed you were talking about offline application. My bad. :)

December 19, 2017 - 12:53am
Response to Vikas@Multichannel

Hi Rai,

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.

Thanks,

Ravi Kumar.

December 21, 2017 - 12:46am
Response to Ravi Kumar Pisupati

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.