DTE_Processing_Indicator remains visible
DTE_Processing_Indicator remains visible
aziegler3
Posts: 47Questions: 11Answers: 1
I am creating a super simple scenario of editor.dependent().
editor.dependent('COUNTRY', function (val) {
if(val === 'CA'){
editor.field('STATE').update(["D", "E", "F"])
}
});
which is a copy of what is discussed here.
As I said, it is super simple. However, when I add it to the form, the field gets the DTE_Processing_indicator visible, and stays visible.
What am I missing here?
This question has an accepted answers - jump to answer
Answers
Not sure what is missing. Take a look at the browser's console for errors when this happens. Let us know what you find.
Kevin
That was my first action. No errors in the console.
Maybe post your Editor configuration.
Kevin
As I was saying, nothing extraordinary here:
Yes but everyone ha a different solution so it's good to see what you have.
Is the processing indicator on the COUNTRY field or the form level?
Does the processing indicator appear when the form is opened or when submitting?
@allan may see something obvious but if not can you provide a link to your page for help debugging?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
will fix it. You need to tell Editor when your
dependent()
action is finished (to allow for async actions such as Ajax). The other option is to execute the callback function that is given as the third parameter to your own callback:The
dependent()
docs could probably do with being rewritten to be clearer on the subject! It is so flexible that it is quite hard to document. It says the following is an option for the return from your function:Allan
Awesome! It did fix it.
I knew that there was a logical, simple answer.
Thank you!!!!