Skip to main content
Participating Frequently
March 6, 2008
Question

bindAttribute ??????

  • March 6, 2008
  • 1 reply
  • 551 views
Ok, I'm not finding any examples anywhere of what the bindAttribute in a cfselect, cfinput, etc do. Can ANYONE give me an example of what this attribute does and how to use it?
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 7, 2008
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_i_07.html#1100379

    Look under the "usage" area for examples.

    In summary, bind allows you to complete or alter a field based on other fields.


    The BindAttribute tells CF what attribute to alter in the tag based on a bind ffield and is only usable in certain version of the tags - i.e. with CFINPUT it can only be used on the type "text".

    aggie00Author
    Participating Frequently
    March 7, 2008
    Thanks for the info SafariTECH, but I looked all through that link, and there is still not a single example that uses the bindAttribute value. I've got the bind down, no problem, but I am VERY curious what exactly the bindAttribute does since I can't seem to find ANYONE or ANY example that uses it.

    Here's one of their examples:
    <cfinput type="text" name="email" label="email" bind="{firstName.text}.{lastName.text}@mm.com">

    Now, what would this do:
    <cfinput type="text" name="email" label="email" bind="{firstName.text}.{lastName.text}@mm.com" bindAttribute="???????">

    I'm just very curious what the bindAttribute attribute is, how you use it, and what it does.

    Anyone have a suggestion or example?