You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've written a command to add a contextmenu with a form but for some reason the feedback function doesn't return the lat/lon from the right-click as in the example.
{ "action": "feedback", "name": "some name", "value": "some value", "lat":51, "lon":0, "layer":"unknown" } // when a user calls the feedback function - see below
I've written a command to add a contextmenu with a form but for some reason the feedback function doesn't return the lat/lon from the right-click as in the example.
{ "action": "feedback", "name": "some name", "value": "some value", "lat":51, "lon":0, "layer":"unknown" } // when a user calls the feedback function - see below
Here's the function for the form:
msg.payload = {
command: {
contextmenu: String.raw
<h3>Rabbit Detection Report</h3> Observer's Name: <input type="text" id="observer_name"><br/> Contact Phone: <input type="tel" id="contact_phone"><br/> Contact Email: <input type="email" id="contact_email"><br/> Date & Time: <input type="datetime-local" id="datetime"><br/> Notes: <textarea id="notes"></textarea><br/> <input type="button" value="Send" onclick=" feedback('rabbitForm', { observer_name: document.getElementById('observer_name').value, contact_phone: document.getElementById('contact_phone').value, contact_email: document.getElementById('contact_email').value, datetime: document.getElementById('datetime').value, notes: document.getElementById('notes').value }, null, true); ">
}
};
return msg;
Please forgive me if I'm being a dunce.
Cheers.
The text was updated successfully, but these errors were encountered: