Reset One field Only in Coldfusion Flash Form

I have a flash form with a fair amount date fields.  I use the code
<cfinput type="datefield" name="DATE1" label="Diagnosis Date:" width="100" value="#now()#"/>
This is the master date field. It populates about 10 other date fields by using the following code for the other 10 fields.
<cfinput type="datefield" name="DATE2" label="Diagnosis Date:" width="100" bind={DATE1.txt}/>
There are certain cases where date fields 7-10 are not used. Unfortuantely, fields 7-10 in those cases are prepopulated because of the bind. I want to put a reset/clear button besides each of those date fields (7-10). Is there a way to code the reset/clear button to only clear the corresponding date field? Right now, I have the users choosing the same date as DATE1 to clear out the field. That is 2 clilcks. I would prefer the users just to click on a reset/clear button.
TIA!

Put this in your pipe. Does  it smoke?
<cfform format="flash">
<cfformgroup type="horizontal">
<cfinput type="datefield" name="DATE1" label="Diagnosis Date 1:" width="100" value="#now()#"/>
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="datefield" name="DATE2" label="Diagnosis Date 2:" width="100" bind="{DATE1.text}"/>
<cfinput type="button" name="date2button" onclick="{DATE2.text=''}" value="Reset Date 2">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="datefield" name="DATE3" label="Diagnosis Date 3:" width="100" bind="{DATE1.text}"/>
<cfinput type="button" name="date3button" onclick="{DATE3.text=''}" value="Reset Date 3">
</cfformgroup>
</cfform>

Similar Messages

  • Custom 404 cfm pages, and ColdFusion flash forms not working together

    Hi,
    I've recently ran into an issue that I was hoping I could have a little help with. My company has been using custom 404 pages for awhile that we set up in iis however we had never set up this custom 404 page to display on .cfm pages, only missing folders. Ie; www.website.com/asdasdasdsd/ would display a custom 404 error But www.website.com/asdasdasdsd.cfm would not. I recently set this up by going in the iis properties for our site, went to the home directory tab click on configuration and selected edit from the mappings tab. From here I checked the verify that file exists open. This enabled the file.cfm custom error to appear however for some reason it disabled all of my ColdFusion flash forms. None of them appear now. If I undo the iis setting that I changed earlier they all re-appear. I got these settings from http://kb2.adobe.com/cps/000/95ee04fb.html and they do the job, they just disable my flash forms. Is there any way to do this without them disabling my flash forms from working?
    Thanks!
    Paul Alkema

    Hi Paul,
    Did you ever receive an answer to this (old) post?  I'm having the same problem myself.
    Thanks,
    Michael

  • Dreamweaver and visual editing of ColdFusion Flash Forms

    Does anyone nows how to
    Visual edit ColfFusion Flash Forms in Dreamweaver CS3
    ??

    The second part of your question doesn't make sense or you
    are not explaining correctly. You have a grid which spawns a popup,
    user selects company name and binds to text field. Ok. But you
    should then submit that info to a query, no?
    Also look into this:
    http://www.asfusion.com/blog/entry/filtering-a-cfgrid-as-you-type--revisited-

  • Convert Coldfusion Flash form to PDF?

    Is it possible to convert a Coldfusion flash based form to a PDF form? I've tried it using Coldfusion 8 and Adobe Professional 8, but all I end up with is a blank PDF. It works just fine for a basic HTML based form. Is there some technical reason this doesn't work?... Because it seems rather stupid that ADOBE Coldfusion and ADOBE Acrobat don't work together properly.

    It's an internal form, so i don't have any link.  But the form is constructed using the standard flash form tags... example:<br /><br /><cfform name="form" action="exampleform.cfm" format="Flash"><br /><cfformitem><br /><cfformgroup><br /><cfinput><br /><cfselect><br />          <br />The entire form is mostly just a mix of those tags.  Pretty standard stuff, but Adobe 8 Professional simply won't convert the form to PDF.  Or, actually, it does but the form is blank.  I'm usually just left with the graphic from the top of the page which likes outside the <cfform> tags.

  • How to have a button to reset a field and not the whole form?

    Hi,
    Can anyone help me with this dilemma please? All tutorials online demonstrates how to have a button to reset the whole form, but i only want the user to clear 1 field in the form.
    I have a form which has a field representing a persons name who has booked out a piece of equipment. I would like the administrator to be able to clear the field quickly without having to select the whole name and then delete it, ready to insert the name of another booker.
    Any help would be very much appreciated. (If it is using dreamweaver features than that is better.)
    Thank you!

    There's nothing in DW that will do this for you.
    This script from the internet seems to do the trick. Add this to the <head> section of your page...
    <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
    <script type='text/javascript'>//<![CDATA[
    $(window).load(function(){
    function resetForm() {
      $(this.previousSibling).val(function() {
      return this.defaultValue;
    $( "input[type='button']" ).bind( "click", resetForm );
    });//]]> 
    </script>
    Then add your form in the <body>...
    <form>
      <label for="textfield1">Text Field:</label>
      <input type="text" name="textfield1" id="textfield1"><input type="button" value="reset" /><br />
      <label for="textfield2">Text Field:</label>
      <input type="text" name="textfield2" id="textfield2"><input type="button" value="reset" /><br />
      <label for="textfield3">Text Field:</label>
      <input type="text" name="textfield3" id="textfield3"><input type="button" value="reset" /><br />
      <label for="textfield4">Text Field:</label>
      <input type="text" name="textfield4" id="textfield4"><input type="button" value="reset" /><br />
    </form>
    EDIT: Ha! Same script as you found Nancy, posted originally at the exact same time too (I threw a couple modifications in)...
    Good times, good times.

  • Copying data from one field to another on a form

    Hi
    I have created a form called application which contains the following fields:
    Name
    Address1
    Address2
    Address3
    Address4
    Location1
    Location2
    Location3
    Location4
    When the user has entered his name and address I would like the data to then prefill into the location lines.
    I think you can do this sort of thing in java event handlers but I have no experience of this.
    Any one got any ideas how I can do this.
    Thanks
    Jayne

    hi Jayne,
    The following is an example of something just like what you want.
    In this form, get_add1Vals(); is called in the js-event handler for the field NEWFNAME1 which gets populated by the value selected or entered into FNAME1. The following code goes in the additional plsql code region (Before displaying the page).
    hope that certainly helps! please update it with your results.
    AMN
    BEGIN
    HTP.PRINT('<SCRIPT LANGUAGE="JavaScript1.1">
             function get_add1Vals{
                var  v_fname;
                for (i=0; i<document.forms[0].elements.length; i++)
                  if (document.forms[0].elements.name=="FORM_TBL_TEST_FORM_3.DEFAULT.FNAME.01")
    v_fname = document.forms[0].elements[i].value;
    break;
    if (document.forms[0].elements[i].name=="FORM_TBL_TEST_FORM_3.DEFAULT.NEWFNAME1.01")
    document.forms[0].elements[i].value = v_fname;
    break;
    void("");
    return true;
    </SCRIPT>');
    EXCEPTION
    When Others THEN
    null;
    END;

  • One mail only to fill the form

    Hello,
    for a survey I need to make it unique so people can only fill it once,
    they put their mail adress and it check if they already filled it or not,
    is it possible with central forms?
    thanks

    No, this is not possible with FormsCentral.
    Regards,
    Brian

  • Browser settings for Flash Forms?

    I have set up a site using Flash Forms. It is working for all
    of my coworkers except one. He cannot see Flash Forms on any site,
    not just the one I created. Are there some browser settings that
    need to be set to see Flash Forms? This is happening for him in
    both IE & Firefox, though. Also, we are behind a firewall that
    blocks Activex, so maybe this has something to do with it, but I
    don't know why it would work for everyone else.
    Thanks,

    Nevermind... I found out his Flash Player was WIN 9,0,47,0
    while everyone else is WIN 9,0,124,0 . He upgraded & it is
    working.

  • HT4628 My airport seems not to be working anymore. I have internet but now I can't play music through Itunes remotely. Airport kept flashing amber. Now I have tried to reset it it only flashes briefly amber and then no more light and it seems disconnected

    My airport seems not to be working anymore. I have internet but now I can't play music through Itunes remotely. Airport kept flashing amber. Now I have tried to reset it it only flashes briefly amber and then no more light and it seems disconnected?? Any help out there?

    Unfortunately the Netgear DG834N router is rubbish with Macbook Pro's. I've had a few netgear routers, which were all good with my mac, which is why I bought the 'N' series one as an upgrade to the 'G' version, but basically it crashes my Mac constantly. I get the fade up grey screen forcing my to hard power off my book. everything freezes. It plain just doesn't work. wireless 'N' is still just in draft form and the difference between the Netgear and Mac version on the macbook pro just clash. Netgear haven't updated the firmware on the router since last year, so hopefully the will soon, but I've just gone back to my old 'G' version, and stuck the DG834N on ebay. I tried all the configs, with and with out security and no luck, it always disconnected, froze and crashed.

  • Fields appear as "Read Only" in an Int.Form called from a WD

    Hi Experts!
    I am having a doubt in an Adobe Int.Form, that is called from a WD application.
    The fields that are in my Form, always appear as a "read only". It is not possible to modify anything there.
    Here, I describe the steps that I follow.
    I create a very simple WD application. In its WD View, exist an unique Object (Adobe Interactive Form).
    In that object, I set the properties:
    "Data source": a context variable type "my structure". "My structure", is a simple structure with a couple or three fields, let´s say PERNR, BUKRS, WERKS... It is linked to the Form Interface (ABAP DICTIONARY-BASED INTERFACE). So in this way, the link between my WD and the AdobeInt.Form is working.
    "PDF Source": a context variable type XSTRING.
    "Template Source": here I have set my Int.Form. Currently, it only contains a couple of fields
    "Enabled": True.
    "Read Only": False.
    In the AdobeForm, I have drag & droped those 2 or 3 fields, save it, and activate it. I guess nothing more is needed, for my test.
    And at last, in the View´s method WDDOINIT, I am reading one of those fields, let´s say the employee number (PERNR), and I set by hardcoding its number (let´s say -> 00000001).
    Until here, everything seems to work fine. When I launch the WD test, the Adobeform appears, at the moment, with only one of my fields (Employee - PERNR), and its value is filled in with '00000001'.
    But now, I would like to write something by myself. And when I try to do it, it is not possible! Field PERNR, is displayed as a "READ ONLY".
    Someone knows what is happening here? I guess it should be possible, to activate as a "EDITABLE" that field in my Form.
    So here is my doubt.
    Am I doing anything wrong? Or am I doing any mistake?
    Thank you very much in advance!

    Finally I think I have found the problem.
    In the View where I am printing the ADOBEFORM, it is needed this code under the method WDDOMODIFYVIEW.
    method WDDOMODIFYVIEW .
      DATA: LV_INTERACTIVE_FORM   TYPE REF TO CL_WD_INTERACTIVE_FORM,
                 LV_METHOD_HANDLER     TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
      LV_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INT_FORM' ). "   adobeform object in view
      IF LV_INTERACTIVE_FORM IS NOT INITIAL.
          LV_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          LV_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_HIDE_NAVIGATION_PANEL( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_DISABLE_PRINT_BUTTON( ABAP_TRUE ).
          WD_THIS->M_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          WD_THIS->M_METHOD_HANDLER->SET_HIDE_TOOLBARS( ABAP_TRUE ).
        ENDIF.
    endmethod.
    Regards,
    Carles

  • Printing "Form Fields Only" not working correctly in Adobe XI

    I have a pdf form with fields including check boxes. If I print this form with all fields it prints correctly, but if I select "Form Fields Only" then all check boxes print as checked regardless of whether or not they are checked. When I use this form in earlier versions of Adobe I do not get this problem. Any ideas or solutions?

    Also the "PrintParams" properties require version 6 or above of Acrobat/Reader.
    One has to review the Acrobat JavaScript API for all sorts of version variations in the way Acrobat's JS object works. And the documention is not always correct.

  • When I fill fields on a form and ask to print using form fields only, the infomation doesn't show up. Other people in the office use the same form with no problem. Using XI standard.

    I have a fillable form that is used by everyone in the office. When the fields are filled we print using the form fields only option to print on our invoices. When I go to print it in Acrobat XI standard using the form fields only option, none of the information I filled shows up or prints. No one else in the office has this problem. Does anyone know why I can't do this, but other people can?

    I have a fillable form that is used by everyone in the office. When the fields are filled we print using the form fields only option to print on our invoices. When I go to print it in Acrobat XI standard using the form fields only option, none of the information I filled shows up or prints. No one else in the office has this problem. Does anyone know why I can't do this, but other people can?

  • Can't print "Form Fields Only" from newly-installed Acrobat Reader XI

    I have created numerous forms for our agency on which our employees used (in previous versions of Acrobat Reader) the "Form Fields Only" print function. We finally got the boss to give us the OK to upgrade to Acrobat XI Pro for me, and Acrobat Reader XI for the employees. However, they open the same forms we've been using and find that they no longer have the menu option to choose "Form Fields Only" for printing purposes. I would be very grateful to anyone who might be able to steer me in the right direction as to how I resolve this issue. Unfortunately, the job does not afford me a lot of time for research and "playing" with new software, and we need to have these forms work for us by Thursday. Help, please! And Merry Christmas to everyone!

    One possible workaround is to export the form data and then import it into a "blank" version of the same file, that has only the form fields. This would require using a script to export and import the data, and to create that additional version of the file for printing purposes.
    Or you can put the file's contents on a non-printable layer when creating it...

  • Printing Form Fields only .. from Reader

    I am a NEWBIE using Adobe Acrobat 8 Pro. It would be a lot easier if Reader & Pro had the same print options for printing formfields only .. but that's life.
    I have created a form with interactive fields for input. However am having
    difficulty having just the "form fields" only print to the preprinted form.
    I have created a new button and found coding for the printparms ..
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.silent;
    pp.printContent = pp.constants.printContents.formFieldsOnly;
    pp.pageHandling = pp.constants.handling.none;
    this.print(pp);
    It's my first attempt at XML / Javascript coding and must be missing something because it's not working.
    If anyone has "a sample" of complete code .. it would be really appreciated .. or a brief explaination might get me going.

    Also the "PrintParams" properties require version 6 or above of Acrobat/Reader.
    One has to review the Acrobat JavaScript API for all sorts of version variations in the way Acrobat's JS object works. And the documention is not always correct.

  • Multiple select list for one field in form

    Friends,
    I have a form , which is having many fields. One of the field are day/date. In this field i have to take 3 dropdown lists. like one for date, one for day and another for year. I have created three lov's for the day,date and year but for the field day/date i am able to apply only one lov. Any way so that i can display all the three lov for one field
    example
    day/date: day -- (dropdown list)
    date -- (dropdown list)
    year -- (dropdown list)
    thanks in advance
    adi
    Edited by: Adi's on Feb 16, 2010 11:46 PM
    Edited by: Adi's on Feb 16, 2010 11:47 PM
    Edited by: Adi's on Feb 16, 2010 11:52 PM

    nope, I just gave u an example to combime day , date and year fields in one select list, it does not matter whether they are in one table or multiple table and you dont require to create any tables for this, I assumed your lov for day / date / year are dynamic not static.
    Regards,
    Shijesh

Maybe you are looking for