Solved

Modal height based on form height

  • 1 March 2024
  • 1 reply
  • 11 views

Badge

We are using a modal to display a form but the modal cuts off part of the form.  We’re looking to set the height based on the form instead of trying to manually set the modal height.

Any help is appreciated.

icon

Best answer by Hristian 5 March 2024, 15:39

View original

1 reply

Userlevel 7
Badge +3

Hi @surgelabs

Unfortunately due to the way Unbounce pages/popups/modals are put together in the builder you’ll have to manually set the height to the max value you expect your form will need.

There are ways with custom JS to automatically adjust the height but that involves a lot of custom code and it might break if something changes. 
 

Reply