Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: DynamicTypeForms - Add button and Javascript events

$
0
0
Hi,

Im wondering if it is possible to add a button and attach a javascript function to customize the form markup to fit my needs.

In this case I have a map datatype. I want to open up a popup window when I click the button "edit". In my popup window I have a html page that has some google maps logic implemented to get map coordinates. When I select my coordinates and click a save button in the popup window I want the coordinates to be copied to the textbox "Coordinates" in my form markup.

UI example on form markup:

Original form markup: http://s7.postimg.org/b2akfejq3/form_without_button.png

With my added button:http://s12.postimg.org/sx0kfmoot/form_with_button.png

I have read the documentation on DynamicTypeForms on composite.net I can't find a solution to achive what Im trying to do.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>