Workflow Soluiton

 View Only
  • 1.  Dynamically Resize A Form

    Posted Jan 03, 2013 01:19 AM

    Hi Guys,

    I have what seems to be a simple requirement.  I have a button on a form that when clicked will resize my form based on the values in text boxes using a custom event.  I can get to the values in the text boxes using ThisFormData but how do I address the height and width properties of the form.  If it was a Windows GUI design environment I'd be doing something like myForm.width = textbox.text

    TIA

    Mark



  • 2.  RE: Dynamically Resize A Form

    Posted Jan 03, 2013 08:57 AM

    Try looking for the control ID of the form by looking at the HTML source when the project is running in the debugger... then in your custom javascript, it'd be something like:

    <formControlID>.height = <blah>

     



  • 3.  RE: Dynamically Resize A Form

    Posted Jan 03, 2013 08:00 PM

    Hi reecardo

    That's not really working for me.  I've tried to search the log for .height but it's a no show

    Also - how do I know what the formcontrolid is ?

    Thanks



  • 4.  RE: Dynamically Resize A Form

    Posted Jan 04, 2013 06:50 AM

    The form control tag would look something like this:

    <FORM ... id=blah ...>

    </FORM>

    The blah after the id would be the form control ID.