Comments MActivity completed
Best Answers
-
Geoff_Ross Cireson Consultant O.G.Hi @Roman_Nepomniashchii
Best I can do quickly is this. It does get rid of it but you do see it pop up briefly.app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) { formObj.boundReady(function () { $('.k-list-scroller > ul > li:contains(Completed)').on("click", function () { setTimeout(function() {$('.k-ext-dialog-buttons.window-buttons > div > button:contains(No)').click()},1) }); }); });
Any good?
Geoff5 -
Jeff_Lang Customer Ninja IT Monkey ✭✭✭✭if you add a hide to it then you shouldn't even see it for a second, we currently hide this dialog so that we can pop up our own on some manual activities to ask additional questions and skip further activities depending on the answers.so a modified version of the answer from @Geoff_Ross so that you shouldn't see the popup
app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) {<br> formObj.boundReady(function () {<br> $('.k-list-scroller > ul > li:contains(Completed)').on("click", function () {<br> $('#extInputDialog').parent().hide();<br> setTimeout(function() {$('.k-ext-dialog-buttons.window-buttons > div > button:contains(No)').click()},1)<br> });<br> });<br>});<br>
6
Answers
Best I can do quickly is this. It does get rid of it but you do see it pop up briefly.
Any good?
Geoff
I'll give that a try in a second. I thought I tried that but with the 1 millisecond timeout I still saw it flash up and without the timeout, it was too quick and the window didn't exist yet to hide.
Good work though.
Geoff