Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No lat/lon reported with feedback #299

Open
pest-tech opened this issue Dec 17, 2024 · 0 comments
Open

No lat/lon reported with feedback #299

pest-tech opened this issue Dec 17, 2024 · 0 comments

Comments

@pest-tech
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant