Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Flash form focus

    Is there a way to establish the focus on a specific field (at page load) using the new MX7 Flash forms?
    sknowles Guest

  2. Similar Questions and Discussions

    1. Setting focus on a form field
      When a CFM page loads, how can you set focus on a textbox so the cursor is already in the field? Thanks Steve
    2. Popup; show, take focus, wait for button action, give focus, hide
      Hi. I've got a popup MC for displaying a message or asking a yes/no question that has to do the following on an event: - show and take focus...
    3. Saving a value if a form is closed while focus is still in the control
      Strange. When I first tested it, the value was not saved. Now it seems to save when I close the form. How do you programmatically save the value...
    4. Continuous Sub form does not release focus with tab key
      How can one make a form that is in continuous format release focus with the tab key and move focus to the next control in the tab order? The way it...
    5. Setting focus after Validating Form Items
      I have a form with about 5 or 8 textboxes and all of them have required field validators... When I submit the form, if some of this field are...
  3. #2

    Default Re: Flash form focus

    Did you get an answer on this? I need to know how to do this as well.
    bal_logicmanager Guest

  4. #3

    Default Re: Flash form focus

    This will set the focus:

    <cfsavecontent variable="onLoad">
    txtName.setFocus();
    </cfsavecontent>

    <cfsavecontent variable="binding">
    {(trigger.text != '') ? trigger.dispatchEvent({type:'change'}) : 'init'}
    </cfsavecontent>


    <cfform name="mainform" skin="haloblue" width="400" format="flash"
    onchange="#onLoad#" bind="#binding#">
    <cfformgroup type="panel" label="Set Focus Example">
    <cfinput type="text" name="txtName" message="Name" width="200" label="Name">
    <cfinput type="text" name="txtPhone" mask="Phone" width="200" label="Phone">
    <cfinput type="text" visible="false" height='0' width="0" name="trigger"
    value="init" onchange="#onLoad#" bind="#binding#">
    <cfinput type="submit" name="btnUpdate" value="Update">
    </cfformgroup>
    </cfform>


    hollyjones Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139