How to create a form with entry into option a selection?

The form below allows users to connect and update their status by clicking a radio button. Ideally, I would like to have the display form the beginning of holidays and dates of purpose only if the holiday option button is selected. Is it possible to do it, maybe with a cfif statement? Any help would be greatly appreciated. Also, the dates are not save when the form is run and I can't understand why... it's the first time I used a calendar entry and am obviously not code this properly. Help, please!

< cfinclude template = "mp_ck_auth1.cfm" >

< cfquery name = "CheckUser" datasource = "dbase_one" >
SELECT *.
USERS
WHERE UserID = #Session.UserID #.

< / cfquery >

< cfoutput query = 'CheckUser' >

"< html xmlns ="http://www.w3.org/1999/xhtml">".
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"

< title > < / title >
< style type = "text/css" >
<!--
{.style1}
do-family: "Arial Black";
do-size: 18px;
make-weight: bold;
}
. Style2 {make-size: 24 PX}
. Style7 {make-size: 18px; do-family: Tahoma ;}}
. Style8 {do-family: Tahoma}
->
< / style >


< style type = "text/css" >
<!--
{body
background-image: url();
background-repeat: no-repeat;
left margin: 0px;
margin-top: 0px;
}
a: link {}
text-decoration: none;
}
a: visited {}
text-decoration: none;
}
a: hover {}
text-decoration: none;
}
a: active {}
text-decoration: none;
}
.style12 {do-size: 12}
{.style15}
do-size: 14px;
make-weight: bold;
}
.style16 {do-size: 12px}
->
< / style >

< html >
< head >
< script type = "text/javascript" src = "calendarDateInput.js" >
< /script >


< script type = "text/JavaScript" >
<!--
function MM_swapImgRestore() //v3.0 {}
var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;
}

function MM_findObj (n, d) {//v4.01
var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}
d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}
If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];
for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);
If (! x & & d.getElementById) x = d.getElementById (n); Return x;
}

function MM_swapImage() {//v3.0
var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).
If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}
}
->
< /script >
< / head >

< body onload = "MM_preloadImages ('whats_new.jpg', 'promos.jpg', 'dayes.jpg')" >
< < table border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< b >
< td colspan = "3" > < div align = "center" class = "style1 style2" > STATUS of territory MANAGER < / div > < table >
< /tr >
< b >
< td colspan = "3" > < div align = "center" class = "style2, style3" >
< class p = "style7" > Welcome back #UserFirstName # #UserLastName #! < /p >
< cfform method = "post" action = "log_entry.cfm" > < cfoutput >
< input type = "hidden" name = "LogDate" value = "#DateFormat (Now (), ' mm/dd/yyyy') #" > < / cfoutput >

< table width = "525" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< b >
< td width = "177" align = "left" > < span class = "style8 style15" > Territory Manager: </span > < table >
< td width = "363" height = "16" align = "left" > < span class = "style12" >
< label >
< input name = "TerritoryManager" type = "text" id = "TerritoryManager" value = "" #UserFirstName # #UserLastName # "/ >"
< / label >
</span > < table >
< /tr >
< b >
< td align = "left" bgcolor = "##CCCCCC" > < span class = "style8 style15" > status: </span > < table >
< td height = "20" bgcolor = "##CCCCCC" > < span class = "style12" >
< label > < / label >
</span > < table >
< /tr >
< b >
< td align = "left" > < span class = "style8 style16" > < strong >
< input name = "Status" type = "radio" value = "in the field" / >
In the field < facilities > < / span > < table >
< td > < span class = "style12" >
< label > < / label >
</span > < table >
< /tr >
< b >
< td align = "left" bgcolor = "##CCCCCC" > < span class = "style8 style16" > < strong >
< input name = "Status" type = "radio" value = "Vacation" / >
Holiday < facilities > < / span > < table >
< td bgcolor = "##CCCCCC" > < table >
< /tr >
< b >
< td align = "left" > < blockquote >
< p > < span class = "style16 style8" > < strong > start date:
< facilities > < / span > < / p >
< / blockquote > < table >
< td align = "left" > < script > DateInput ('VacStart', true, ' MON-DD-YYYY "") < /script > < table >
< /tr >
< b >
< td align = "left" > < blockquote >
< p > < span class = "style16 style8" > < strong > end date:
< facilities > < / span > < / p >
< / blockquote > < table >
< td align = "left" > < script > DateInput ('VacEnd', true, ' MON-DD-YYYY "") < /script > < table >
< /tr >
< b >
< td align = "left" > < span class = "style8 style16" > < strong >
< label >
< input name = "Status" type = "radio" value = "Sick day" / >
< / label >
Sick day < / strong > < / span > < table >
< td > < table >
< /tr >
< b >
< td align = "left" > < span class = "style8 style16" > < strong >
< label >
< input name = "Status" type = "radio" value = "Admin Day" / >
< / label >
Admin Day < facilities > < / span > < table >
< td > < table >
< /tr >
< b >
< td align = "left" > < span class = "style8 style16" > < strong >
< input name = "Status" type = "radio" value = "DSR Ride Along" / >
DSR Ride Along < facilities > < / span > < table >
< td align = "left" > < label >
< input name = "DSRName" type = "text" id = "DSRName" / >
< / label > < table >
< /tr >
< b >
< td align = "left" > < span class = "style8 style16" > < strong >
< label >
< input name = "Status" type = "radio" value = 'ServiceCall' / >
< / label >
Service calls < facilities > < / span > < table >
< td align = "left" > < label >
< input type = "text" name = "ServiceName" / >
< / label > < table >
< /tr >
< b >
< td align = "left" > < table >
< td align = "left" > < table >
< /tr >
< b >
< td colspan = "2" align = "center" > < label >
< input type = "submit" value = "Submit" / >
< / label >
< label >
< input type = "reset" value = "Reset" / >
< / label > < table >
< /tr >
< /table >
< / cfform >

< / body >
< / html > < / cfoutput >

(1) copy this script into the code


If (return [0].) Status [i] .checked &! (return [0].) Status [i] .value == 'Vacation')) {}
document.getElementById('startDateRow').style.visibility = 'hidden';
document.getElementById('endDateRow').style.visibility = 'hidden';
}
}
}

(2) initial value style "Hidden."


 

Start date:
 


                




 

End date:
 


                     

(3) call the view script





Tags: ColdFusion

Similar Questions

  • How to create a form with a submit in CC button animate using Actionscript 3

    How to create a form with a submit in CC button animate using Actionscript 3. The file will first be a SWF but will also have the flexibility to export as HTML5

    I've searched high and low for an example of code for this entry.

    Can someone help me please?

    Thank you

    You can use the same graphic assets of basis for two projects, but the coding will be different for everyone.  You must work on the project of a code at a time.

  • How to create a form with 4 "column" in Eloqua?

    Hi and I thank you in advance for the answer finally. I need to create a form in eloqua with column 4. Is this possible? If it is possible how do you realize this?

    Thanks Pietro

    Pietro - if you view the present in our section Do It - you're more likely to get a faster response! Good luck. This is taken by the operations marketing on Linkedin group!

  • How to create a form with Acrobat DC with which it is possible to automatically fill in fields?

    I would like to create a form where people should fill in their name (for example). This name is repeated several times in this doc. The person who fills in should complete only his name in the first text field, and others, which must contain the same text, should be filled automatically. I can't find a way to do it. I hope someone understands what I'm trying to explain :-)

    Simply copy and paste your field. The fields with the same name will be

    automatically have the same value.

  • How to create a form that requires thousands of boxes?

    Hello forum members

    I have Adobe Acrobat 8 Professional.  I searched the internet and forums for the last few hours and I can't seem to find information on how to create a form with multiple check boxes.  I don't want to give individual names to thousands of boxes.  I am hoping there is a simple solution to my problem.  Maybe don't even need to use checkboxes.

    Here it is...

    I'm a DJ and the wedding season is coming.  For every wedding that I do, I usually give the bride and groom a list of my songs and they choose a bunch of songs they would like to have at their reception.  In the past, I've just been sent word to Web page with songs and they would send me their selections in another document or directly in the email response.  I want to make this process easy for them (and me) in a pdf document where they can simply place a check mark next to the songs they want and then send it to me.  Premium (if possible) I would like to be able to export the songs they have selected in a separate document so that I don't have to go through the full pdf (with thousands and thousands of songs) when they send it to me.

    I would be forever grateful if someone help me or direct me to a link with additional information.

    Thanks in advance,

    Mike

    Probably the best thing to do is to have Acrobat automatically adds checkboxes for you. It would take to add a box character by using a font such as Wingdings next to each song title. When you select "forms > run form field recognition", it detects each box on every page and add the checkbox fields.

    You need to activate the reader of the document (Advanced > user rights enable in Adobe Reader) so that users can save the completed form.

    Once you receive it back, you can run a script to create a list of selected songs. Exactly how do you it depends on indications of the final form that you create.

  • How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of chan

    How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of change the color, I chose.

    Three things I can think of:

    Your document must be in RGB mode.

    Layer blending mode should be set to Normal

    Masks are grayscale. If you select the mask, you cannot apply a color.

    Always check your tab at the top to see if what you choose is RGB or grayscale.

    Gene

  • Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions?

    Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions? Questions are open to everyone, so asking narrative responses.

    Hi landon39843319,

    You can have fields flowing / more dynamic in a PDF of LiveCycle Designer form, but not in an AcroForm (only created in Acrobat).  LiveCycle Designer is a program completely separated used for are delivered with each purchase Acrobat Acrobat XI has been release.  Now you must buy separately.  But LiveCycle Designer PDF forms are wrapped in a shell of PDF so that they will be displayed and can be filled in the free Acrobat Reader DC and earlier versions.

    If you do this in Acrobat with an AcroForm, you have as much information typed into a field that the user wants, but he's going to show everything on the screen.  Displays only the text that fits into the field, then a + sign will appear in the field to indicate that there is more text in this field, you can scroll down to read.  You can also set the automatic font size so that as more text is entered in the police becoming smaller and smaller to adjust the text, but that is usually not desirable for many forms.

    Hope this helps,

    Dimitri

    WindJack Solutions

    www.pdfscripting.com

  • How to create a blur with CS6 effect?

    Hello, the blur effect on the CS5.5 version has been proposed. CS6 it no longer.

    How to create an exit or entry of blur on a video with CS6?

    Thank you

    Hello!

    Thank you! It's perfect!

    Good bye

  • How to create RAID 5 with 6 disks?

    I'm new to vmware. My machine is currently running ESXi 4.1 but the RAID set up gives me no more disk space I was advice to remake the structure of the disc physically to have all 6 disks in RAID 5 and then reinstall ESXi. I'm doing, but I need a direction how to create RAID 5 with 6 disks. Can someone please help with this?

    Thank you

    SD

    Assuming you are using the integrated Smart Array 6i controller it should without a problem. If you can get into the BIOS of conreollers, you can also boot from Smartstart CD and use the ACU (Array Configuration Utility). The ACU has the advantage that you can split the RAID in several logical drives. I usually create a small logical volume (~ 10GB) for the installation of the hypervisor (ESXi) and another large logical volume to the VMFS data store.

    André

    PS: When you respond by e-mail, please do not understand the original message.

  • How to make a form with report and a form of inclusion in the same page?

    Hey, guys:

    I was wondering if you could have any link or examples to show how to make a form with report and a form of inclusion in the same page, these two forms are related to the same table. Our customer wants that a user can add a new row to the table in a form and see all lines created by this user in a report, the report should provide link change as well. the problem is: whenever I inserted a new line or change a line or delete a line, and submitted and return to this page, all hidden elements lost their values, this report is empty, and some display only items also lost their values. Could someone give me any suggestions?

    Thank you very much!

    Sam

    So, the problem is essentially with page elements lose their session state values when re-loading of the page. How do you define values for the elements of the hidden page? You have default values defined for those? They are based on the database column? What is the "Source" parameter for these items on the page? It is set to "Always, replace any value in session state"? You have any process of 'Empty the Cache', which is reset these values to null element?

    What is your version of the Apex?

    I would recommend that you have installed for example in apex.oracle.com. This would help to better understand the issue.

    Published by: jaouad khalifi on 13 December 2012 22:11

  • How to create a share with the shape of a friend

    Hello

    Anyone know how to create a form of "share with a friend"? It is about sharing a simple html page not an e-commerce site or a blog page.

    FYI a link:

    http://i-communicate.com.au/new/media-handling.htm

    See you soon

    Micha

    Found that I need to add or change the {module_siteurl) to {module_pageaddress} to refer to a specific page.}

  • How to create a form of free paths using script?

    Hello

    I want to create a form in which I add multiple points

    I try to use GraphicLine, but it adds no way point in this

    var myGraphicLine = myPage.graphicLines.add ();

    myGraphicLine.paths.item (0).pathPoints.item (0) .anchor = [72, 72];

    myGraphicLine.paths.item (0).pathPoints.item (1) .anchor = [72, 144];

    myGraphicLine.paths.add ();

    myGraphicLine.paths.item (1).pathPoints.item (0) .anchor = [72, 144];

    myGraphicLine.paths.item (1).pathPoints.item (1) .anchor = [90, 100];

    myGraphicLine.paths.add ();

    myGraphicLine.paths.item (1).pathPoints.item (0) .anchor = [90, 100];

    myGraphicLine.paths.item (1).pathPoints.item (1) .anchor = [110, 144];

    myGraphicLine.paths.add ();

    myGraphicLine.paths.item (1).pathPoints.item (0) .anchor = [110, 144];

    myGraphicLine.paths.item (1).pathPoints.item (1) .anchor = [144, 72];

    I want to create a W shape using script type.

    How to create a form of type free paths (like those drawn with pencil or pen tools) using js?


    Thank you

    This is because you create separate ways. Create just a first, and then add all the pathpoints.

    Do not forget that all first path you create comes with free first 2 points, so just move these in the position as shown above. Then add the new points to the same path, rather than create new ones (lines #4, #8, and #12 in my example).

  • How to create a form field for a paragraph response?

    I'm using Acrobat 8 Pro and I have created a form with a field that requires a somewhat longer answer, as perhaps a paragraph or two.  I tried to change the Options include the checkboxes for "Multiline" and 'Scroll long text', but still only a single line of text is visible in the field when the form is printed.  How can I make the entire visible response?

    Make sure that the field has the value of Multiline. If this is the case, something is wrong, and I delete the field and create a new.

    If the behavior persists with a new field, I would be very interested in looking at an example that illustrates this. Try to do a repair of Acrobat (help > fix the Installation of Acrobat) at this stage.

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • How to create Hlp files with labwindows 9.0

    Hello

    I used to create the dll with Labwindows 8.5 and use them with TestStand... The advantage is that with the help file, I can add information to the Fp file and loading the DLL with TestStand, the "?" button to open the help file...

    But the problem is that I can't find help with Labwindows 9.0 generation...

    Does anyone know how to create file hlp with Labwindows 9.0?

    The procedure with Labwindows 8.5 has been:

    Modification of the PS file, then generate the Option-> windows help

    Thank you very much

    Ronan

Maybe you are looking for