Hi Roberts,
Yes! It is working now! Thanks for your help.
I'm not using event layer in the mxd.
do you plan to have 'exclude layer' tag in your widget? I have over 50 layers and I also use street map (from arcgis online) as basemap. The identify result always show my basemap, but I don't want to specify all 50 layers using the 'layers onlythese' tag. It will great if you will have the exclude layer element!
Also, is it possible to add a description text within the <layer>? I have copied your default code for the <layer> element below. I'd like to add a description to explain the layer's attributes. For example, I specify a layer's name and what fields (attributes) to display. It will be very helpful if there is a tag that I can add some texts such as 'The field Code value 1 means no data'.
<layer>
<name>Parcels</name>
<fields>PARCELID</fields>
<links>
<link includeinresults="false" field="" alias="">
<linkprefix></linkprefix>
<linksuffix></linksuffix>
<iconfield></iconfield>
<iconprefix></iconprefix>
<iconsuffix></iconsuffix>
</link>
</links>
<zoomscale>12000</zoomscale>
<forcescale>true</forcescale>
</layer>