Professional Web Applications Themes

flash form error, can't use the same name more thanonce? need workaround - Coldfusion Flash Integration

I've always written my forms to have multiple buttons, one for updating and one for deleting. so in html I would do this: <input type=submit name=action value=Update> <input type=submit name=action value=Delete> so I'm trying the same thing with flash forms in cold fusion: <cfinput label="Update" name="action" type="submit" value="Update"> <cfinput label="Delete" name="action" type="submit" value="Delete"> but now I get this message: 2 Errors found. Error /index.cfm:334 id 'action' was already defined on line 333 Error /index.cfm:335 id 'action' was already defined on line 333 Is there a way to make this work or do I have to either create a special action_delete ...

  1. #1

    Default flash form error, can't use the same name more thanonce? need workaround

    I've always written my forms to have multiple buttons, one for updating and one
    for deleting. so in html I would do this:

    <input type=submit name=action value=Update>
    <input type=submit name=action value=Delete>

    so I'm trying the same thing with flash forms in cold fusion:

    <cfinput label="Update" name="action" type="submit" value="Update">
    <cfinput label="Delete" name="action" type="submit" value="Delete">

    but now I get this message:
    2 Errors found.

    Error /index.cfm:334
    id 'action' was already defined on line 333

    Error /index.cfm:335
    id 'action' was already defined on line 333

    Is there a way to make this work or do I have to either create a special
    action_delete or a new form? I'd like to keep the logic the way I like.

    Any suggestions?

    Thanks,

    John

    johnnystacks Guest

  2. #2

    Default Re: flash form error, can't use the same name more thanonce? need workaround

    Just change the name of the buttons

    <input type=submit name="btn_update" value="Update">
    <input type=submit name="btn_delete" value="Delete">
    Ken
    The ScareCrow Guest

  3. #3

    Default Re: flash form error, can't use the same name more thanonce? need workaround

    I was hoping to do logic like this

    <cfparam name="action" default="list">

    <cfif action equal "list">
    <cfelseif action equal "update">
    <cfelseif action equal "detail">
    <cfelseif action equal "delete">
    </cfif>

    So I just converted everything to html and things work the way I like. thanks
    anyway. The forms don't really buy me anything.


    johnnystacks Guest

Similar Threads

  1. Replies: 1
    Last Post: June 23rd, 11:29 AM
  2. viewing flash nested in CFIF with active content workaround
    By melissamm in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: June 13th, 02:16 AM
  3. Flash Form error MSG
    By reya276 in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: May 18th, 01:13 PM
  4. Flash Form Error
    By Rene in forum Macromedia ColdFusion
    Replies: 2
    Last Post: July 15th, 06:55 PM
  5. flash form error popup
    By TheEngineer in forum Coldfusion Flash Integration
    Replies: 2
    Last Post: April 21st, 08:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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