Skip to content

WebDialog.get_element_value

Thomas Thomassen edited this page Jun 12, 2013 · 3 revisions

Under SketchUp 2013 initial release WebDialog.get_element_value doesn't work for <TEXTAREA> and <SELECT> elements. It does however work under older SketchUp versions for these elements. Windows versions of SketchUp never had this issue.

Fixed in SketchUp 2013 M1.

To work around this one can call a javascript function that fetches the value, such as jQuery $(selector).value() and put that in a hidden <INPUT> element and then use WebDialog.get_element_value to get the value of that <INPUT> element. This acts as a bridging function that is cross platform compatible.