Skip to content

Action-Lab/add-points-to-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

add-points-to-map

Credits:

Solution to creating appearance of a two-part form, with data recorded after each part, in case user does not complete second part:

  1. Set the “target” attribute of the form to a hidden iframe in the page
  2. When the user clicks “I agree to participate”, the form is submitted in that iframe
  3. We get an error message (unable to display text or something) in the console because of different window origins, but nobody cares
  4. The form gets replaced by the map, AND the ‘target’ attribute of the form is not the iframe but the actual document (map)
  5. When user clicks “Submit”, we get the “Thank you, your answer has been recorded” message

About

web form asks users to add points to the map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages