Skip to main content

Property inquiry form

Including a simple property inquiry form

Create a new form named “Objektanfrage” (property inquiry) with the form generator. Add the fields and descriptions you need, and don’t forget a field for the property number, ideally as a hidden field.

Passing the property number

With a little JavaScript we can pass the property number to the input field. You can add the script, for example, to the detail view template (makler_details_simple or makler_details_extended).

Passing the property number to the input field with the ID “ctrl_17” with jQuery

<script>
if(typeof jQuery('.verwaltung-techn-objektnr-extern') != 'undefined')
  jQuery('#ctrl_17').val(jQuery('.verwaltung-techn-objektnr-extern .value-text').html());
</script>

Passing the property number to the input field with the ID “ctrl_17” with MooTools

<script>
if(typeof $('.verwaltung-techn-objektnr-extern') != 'undefined')
    $('#ctrl_17').set('value', $('.verwaltung-techn-objektnr-extern .value-text')[0].get('text'));
</script>

This is what the finished form can look like