Skip to content

No lat/lon reported with feedback #299

Open
@pest-tech

Description

@pest-tech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions