Hi All
I am trying to modify the eSearch Widget for our needs.
Please see attached screen photo. I want to allow address or APN that are not in the drop down list so that I can show a redirect message to link to google map.. Where is the string "The value entered in not valid" defined?
Thank you in advance.
Solved! Go to Solution.
Bing,
That is an internal dojo dijit validation error string from the dojo library.
It appears when I call this.stringCodedValuesFS.validate().
Bing,
That is an internal dojo dijit validation error string from the dojo library.
It appears when I call this.stringCodedValuesFS.validate().
Hi Robert, Thank you again for the hint.
I am trying to figure out how to allow people entering an address that is not on the auto-complete drop-down. Currently, when a wrong address is entered, the code stops at this function and did not go anywhere.
buildWhereClause: function (layerIndex, expressIndex, /* optional */theValue)
Bing,
So in the SingleParameter.js find this code block and change it to do something else.
It took me a lot of debugging.
I commented out the whole section as you put above. Also I commented out this function.
_showValidationErrorTip: function (_dijit) {
/*
if (!_dijit.validate() && _dijit.domNode) {
if (_dijit.focusNode) {
_dijit.focusNode.focus();
_dijit.focusNode.blur();
}
} */
},
One last question here, how to get the value of the "wrong address" that user entered here?
This may be against the nature of your design. I am trying to let the user only enter a valid address, but in case they enter a non-existing address, we want to redirect them to a geocoding service to find the area.
Thank you Robert.
I think I got it. The below call works.
this.stringCodedValuesFS.attr('displayedValue')