Hello,
I am creating a Google Map page with google Map Location Asset… So far user can click on map and a bubble would appear clicking on whihc would open a pop up whihc would ask for Name,email and Message ffrom user. On entreing the info and clikcing Submit would create a google map locaiton asset.
Now the issue is i want to keep a check box next to my Email text field whihc would be for asking user whether they want to receive promotional emails from us.
I am storing the Name , Email and Address info in the google Location assets Name, ShortName and Description field. For this email tick i have created a Metadata Schema.
My query is how can i assign value to the metadata schema on click of Submit button. The submit button has some SQl_****, i saw it by looking at the view source fo the pop up. Thats inbuilt button provided. So can anyone tell me how can assignt he value to my metadata on click of submit button.
Awaiting for reply…
Thanx…
[quote]
I am creating a Google Map page with google Map Location Asset… So far user can click on map and a bubble would appear clicking on whihc would open a pop up whihc would ask for Name,email and Message ffrom user. On entreing the info and clikcing Submit would create a google map locaiton asset.
[/quote]
What version of MySource Matrix are you using?
Thanx for the concern…
I am using Squiz MySource v3.22.1 (Matrix)
It is possible to assign values to metadata fields of an asset by using the trigger system. The trigger should be configured to watch out for some query string values, then if present also check the users ability to edit the metadata on that asset (with a trigger condition - you probably do not want the general public to be submitting data to your metadata fields). Once all your conditions are met you can assign the value passed in the query string to a metadata field for the particular asset being accessed by the submit.
Getting that data into the query string is the tricky part. You would need to deploy some javascript to add some extra fields to the form the submit button sits in (ie hidden fields), or append the action url of the form. I'm not familiar with this particular asset so I'll leave someone else to comment on whether that might be possible without interrupting the matrix functionality.
I am creating a Google Map application where users can put a flag at thier desired location.
Clicking on google map would bring a pop in center of the screen and it contains a Simple Edit Layout form. Which ask for Name Email and Description. I am storing this informaiton in the Google Map Locaiton Asset's… Name, Short Name and description. The latitude and longitude get fills up by %globals_get_Lang% which comes as query string in the pop up.
Everythign is all set. My workflow is also running properly. It basically send an email to me when a user post a message, Google Asset is created.
My issue is I want to add a chekbox or radio button in the simple edit layout form that would be normalyl be askign user whether they want to recevei email on the latest news from us. For this i have created a metadata schema with a metadata field EmailTick which is of type "Select" of "checkbox". %metadata-F_10915% by this keyword i got a radio button having value "Yes" on my simply edit layout form.
The form has a inbuilt Submit button which when clicked assign the Google Map locaiton asset information from the testboxes i have for Name and email… but i have no clue how i can assign the users selection abt the radio button for the metadata. I have applied the metadata schema to the forlder where all my google locaiotn asets are created. Currently when i check thier Metadata after creating a locaiton asset, It shows me the metadata field "EmailTick" but its blank.
I have a javascript funciton written in the design file of the site, for validating email. On clicking this inbuilt submit button i have called that javascrit function. If the javascript returns true then only the form is submitted. Can i do soemthing in the javscript funciton.
Submit button HTML is sort of like this…
<INPUT class=sq-form-field id=sq_lock_release type=hidden value=0 name=sq_lock_release> <INPUT class=sq-form-field id=sq_commit_button accessKey=s onclick="if (submit_form) { if(CheckEmail()){ submit_form(this.form);} } else { this.form.submit(); this.disabled = 'disabled'; window.opener.window.location.reload(true); window.self.close();}" type=button value=Submit name=sq_commit_button shoe="">
Guidance in any direction woudl be helpful…