auto resize a form because of "not you" function | Community
Skip to main content
Level 2
April 20, 2016
Question

auto resize a form because of "not you" function

  • April 20, 2016
  • 1 reply
  • 2316 views

hi,

I want to resize a form automatically because of the not-you function. for example, a form for a event registration has got 10 fields (name, address etc.). if the visitor is known at the system, some fields are not visible because they are prefilled (just in the background). so it could be that there are only a little text and a button for registration to the event. in this case there is a lot of space between the button and the page footer.

I want to avoid this empty area. has somebody solved this issue? or do you have any ideas? it would be great.

regards,

dagmar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
April 20, 2016

I always recommend this script within the Known Lead HTML:

<script>

MktoForms2.whenReady(function(form){

  form.getFormElem()[0].className += ' mktoKnownLead';

});

</script>

Then you can style the form differently depending on whether you're in KL mode or not.

Level 2
April 20, 2016

hi sanford,

thanks a lot! I will try!

best,

dagmar