Forums

Use mosmap in a chrono form

Guidonzolo 22 Feb, 2013
Hello
I've a form with same code and i've a google map displayed with {mosmap ...}.
I'd want to insert Latitude and Longitude values with two values that i've calculated before (in the same form - $Lat, $Lon) as: {mosmap width='500'|height='400'|lat='".$Lat."'|lon='".$Lon ....
I don't know how can i store the two values and set them in the mosmap plugin.

Can anyone help me?

Thanks
Guido
GreyHead 23 Feb, 2013
Hi Guido,

If they are stored and you've got them back into the $form->data array then you should be able to use code like this in a Custom Element element in your form:
<?php
echo "{mosmap width='500'|height='400'|lat='{$form->data['Lat']}'|lon='{$form->data['Lon']} ....";
?>

Bob
Guidonzolo 25 Feb, 2013
Thanks, It works fine.
Guido
This topic is locked and no more replies can be posted.