In the drop-down list and cfif len CFIF not can you help me to break this block of code

can you help me to break this block of code. sense

< table >
< b >
Type of device < td > < table >
< td >
< SELECT name = "Hardware" size = "1" >

< OPTION Value = 'EL' > please select < / OPTION >
< OPTION Value = 'Ca' < cfif material is 'Ca' > selected < / cfif > > Cell < / OPTION >
< OPTION Value = 'EL' < cfif material is 'EL' > selected < / cfif > > Email only < / OPTION >
< OPTION Value = "pE" < cfif material is "PE" > selected < / cfif > > Pager < / OPTION >

< / select > <!-->
< table >
< /tr >

What is the cfif for. for example
< cfif material is 'Ca' > selected < / cfif >?


-----------
What does this block of code?


< b >
Cell < td > < table >
< td > < cfoutput >
< cfif NOT len (trim (Dev_email)) > < cfset Dev_email = "@verizon.com ' > < / cfif >
< input type = "Text" name = "Dev_email" value = "" #Dev_email # "size ="40"maxlength ="40"> < table >"
< td >
< b > < police = "Verdana, Arial, Helvetica, sans-serif" size = "2" > WorkEmail < / police > < / b > < br >
< cfif not len (trim (D_email)) > < cfset D_email = "@meekeedees.com" > < / cfif >
< input type = "text" name = "D_email" Value = "" #D_email # "size ="40"> < br > < br >"
< / cfoutput >
< table >
< /tr >

What is the cfif for. for example
selected?

If the variable material has the value 'Ca', this option is selected when you load the page.

What does this block of code?


Cell

If the dev_email variable is an empty string, it gets the value "@verizon.com.

Tags: ColdFusion

Similar Questions

  • Choose a value in the drop-down list and sumbit

    Hello

    I am completely new to the forms and javascrpit so my question is very simple:

    I created a drop down list with names.

    I want to push a button and submit the pdf doc to the letters to the coresponding name from the drop-down list.

    My code

    ……

    var aa = DropDownList1.rawvalue;

    var bb;

    If (aa = 'George') {bb ="[email protected]" "}

    ElseIf (aa = "Nikos") {bb ="[email protected]" "}

    event.target.mailDoc (true, bb, "", "", "PDF form is returned");

    ….

    The code has no bugs, but after pressing the button, the pdf is sent allways to [email protected] . He behaves as if I said a constant bb ="[email protected]"" "

    It does not take into account the value in the menu drop-down

    Could you please help me?

    Concerning

    There is a second bug in your script, I have identified no before.

    var aa is DropDownList1. rawvalue;

    should be

    var aa is DropDownList1. rawValue;

  • I've accidentally deleted from google as default search engine in the drop-down list and can't manage search engines

    I want in the drop-down list for ease of use, but are not all the addons I've tried... I am currently using 18.0.2

    Hello

    See:

    In the Manager at the bottom left there is a button to restore the default settings for search engines

  • Select from the drop-down list and populate a list in another menu drop down

    I have a drop down list with 10 items in the list. If possible, would like for a selection in the drop-down list to populate a drop-down list with another list of selections. Each of the 10 points in the first list each will have a list of different options in the second drop-down list. I don't know how to build this solution.

    Thank you

    MDawn

    Hello

    It was because of the clear rawValue script that I put in the output from the drop-down list event businessFunction.

    I fixed it:

    // clear the current selection in the department dropdown
    dept0.rawValue = null;
    dept0.execEvent("exit");
    

    https://Acrobat.com/#d=MrWYQbTZIR7xJQDlm5ZSLg

    Good luck

    Niall

  • How to make the fields from the drop-down list required to make a selection before you save a PDF file

    I have a PDF form where I entered a JAVA script in some areas by using the option ON BLUR under 'Actions' and it works very well to prevent users to go to another site if they leave the field with the empty JAVA Script in place.

    My question is that I have other form fields that have a drop down menu where they can choose several options. I would also like to make these fields to where they can't move forward on the form unless they choose an option in the list. However, because with the option in the list "choose a ' is a default option entered into the field (field is not empty), script JAVA of BLUR ON option I used in my empty fields does not work to block the user to move beyond the matter without selecting an option. They are able to save the form with all the drop down menus staying to 'pick '.

    I made the field "Required fields" then they are highlighted with the red area around, but is there another tool to force them to choose an option for each in the drop down menus before you save the form, instead of being able to save with leaving the 'choose One' in the field by default?

    The best way to do this without knowing the default value of the field is to compare the value of the field to the default value of the field... You must make sure that your default value is not part of the possible acceptable answer. It works with most of the field types that a user can fill.

    If (event.value! = event.defaultValue) {}

    do something;

    App.Alert ("required field not completed. \nField name: "+ event.target.name, 1, 0);

    }

  • Why don't point in the drop-down list address not remove when selected and click on remove

    on version 14.1 - to remove an item in the drop-down address, said the point the address line the right click and select delete - this clears the address line but point remains in the drop-down list and does disappear not - why point unclear when you return to fall down to check this

    the system is XP and ff 14.1

    I think that you need for the arrow down to the element, so it is highlighted, and then press DELETE.

    (I meant the keyboard delete key, you can't right click on the drop-down list).

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.

    ChangeRevDetails();
    function ChangeRevDetails(){
    
    
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    
    
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
    
    
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
      
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
    
    
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});   
         var MyRev = col2.textEditboxes.add({minWidth:100});
    
    
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    
    
        var myResult = myDialog.show();
    
    
            if(myYear.editContents == "") //entry is "" 
            { 
            alert("Please enter some text into the contents field."); 
            ChangeRevDetails(); 
            }
            else if(myResult == true) //user entered datas 
            { 
    
    
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
    
    
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;       
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
      
        } 
        else //implies user clicked cancel 
        { 
        myDialog.destroy(); 
        }
    
    
    }
    
    

    The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

  • Blockable in the drop-down list

    I would like to create a kind of blockable in the drop-down list. I thought to create an editfield and when I start to write it, start to search a list and then update an ObjectChoiceField. I don't know if it's the most effective way to do it, I was also thinking about a KeyworldFiilterField but I want to do it in a way in the drop-down list, and I can't find how do it like that. Someone at - it a better idea or should I do as I said with the editfield and the objectchoicefield? Thank you in advance.

    I think Finally I use a keywordfilterfield... Thank you.

  • Is this possible? Subforms appeal based on the drop-down list associated with the database

    I'm hoping to make a dynamic shape and I wonder if it's possible.

    I have a database with about 300 entries - pieces of agricultural goods and a few little bits of info on each of these properties. I want to create a form where users can choose the piece there rather than the property in a drop-down list. Based on the property they select, another menu drop down to fill with the cultures associated with this property. Then based on the selection made in this drop-down list, a specific form will be brought upward.

    For example, a person selects property #102 in the drop-down list. In the database, property #102 is associated with wheat, barley and corn, so the next drop would be complete with these three cultures. The user selects the wheat in the drop-down list and the form of wheat would be called. 

    I hope I explained that well enough.

    Is this possible? And if it's possible, how complicated to do? Assuming that I already have the database and subforms, it would be a long process from weeks to the script, or it would be simple enough?

    Yes, this could be done, here is an example that should help: Drop dependent dropdown (specimen attached)

    On the basis of selection (change event of the second menu drop-down), you can show or hide a subform.

    -Wasil

  • How to disable the field in the drop-down list to enter a value

    I got a box dropdownlist field and previously a few numerical values on her list:

    say a list of page numbers,

    11

    22

    33

    41

    42

    43

    52

    ..

    I put codes on the change event so that once the user clicks on an element, it is directed to the specific page immediately.

    But the case is that some users would like to enter the field and type a number rather than clicking.

    If he tries to type 42, change event will get him on page 41 instead (as the 1 '4' tank is put in correspondence),

    and then accidentally edit a field then put the tank rest '2' on it.

    so, how can I disable tapping on a drop down field?

    Rgds.

    Hello

    If you select the drop-down list and go to object > field palette. Here you can uncheck "allow customized entry. This will prevent the user to type in the drop-down list.

    With the drop-down menus, I prefer script to the exit event.

    Good luck

    Niall

    Ensure the dynamics

  • Value of the drop-down list instead of the text

    I want a drop-down list that includes complete definitions for the user to watch but when they choose the item they want only the abbreviation indicating on the form. For example, in my items list is said 'Illinois', but when they select "Illinois" she fills the field with the bind value of 'IT '. Is this possible?

    See the attached file... If it helps...

    I place a TextField on the top of the drop-down list and setting the rawValue selected the TextField... In the case of exit of the combo I hide list drop-down and display of the textfield object. Similarly, in the event you enter in the text field, I am displaying the drop-down list field and hide the text field.

    This way I can show 'IT' If you choose "Illinois" in the menu dropdown.

    https://Acrobat.com/#d=7Y0qDg-ld6nWNxw8G-0cNg

    Thank you

    Srini

  • How do I change site in the drop-down list

    This seems like it should be the best thing to do in firefox, but I can't figure out how to change the sites that appear in the drop-down list of my browser. Who/what determines which sites are in this drop-down list. It is certainly not the most frequently used. I have sites here I've been only once.
    Please notify.
    Thank you

    You are welcome.

    Could you please click on solved it next to the post that solved the problem for you? This will help others looking for a solution to the issue.

    Thank you.

  • How to add a destination folder in the drop-down list box "send to" in Windows XP?

    One of my disks in CD does not work, so I want to add the DVD drive in the drop-down list box... I can't remember how.

    Hello

    This article can help...

    http://support.Microsoft.com/kb/310270

    Tricky

  • Erase contacts from Windows mail in the drop-down list.

    I am ready to send my email. I type the first letter of the 'c' reception A box goes down with four different recipes that begin with 'c '. How can I delete the ones I don't want from the drop-down list? I removed them from the list of contacts, but they always appear in the drop-down list.

    Thanks in advance for any help!

    Jim

    How to delete registration completion email in Windows Mail
    http://www.Winhelponline.com/articles/245/1/how-to-clear-the-email-auto-complete-entries-in-Windows-mail.html Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • How to restore the search bar drop-down list and the search engine icon today as it was in version FF 33?

    Some ealier time, I managed to go back to the drop down list via editing about: config and setting browser.search.showOneOffButtons to false.

    But yesterday firefox asked me to improve my search and I agreed. After that, I see ugly new tile instead of the drop-down list.

    How can I go back to find it is old menu drop-down appearance?

    "browser.search.showOneOffButtons" was a temporary pref which lasted from Firefox 34 upward through 42 of Firefox. The underlying code that have supported this preference is gone like Firefox 43.

    https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/ has an option for old search (experimental) in Options of CTR > UI (1)

Maybe you are looking for

  • Where is the application of friends for series 1

    My wife has the original Apple Watch. She uses the functionality of friends (side-scroller) to add friends for quick access. I just bought Watch series 1 and I do not have this feature? That has been deleted? If this is not the case, how to do it on

  • Extend the network 1 Extreme and 1 Express

    I have the latest Airport Extreme, and I would like to extend my network to the floor with best performance.  I have the ability to connect to an Airport Express Terminal via an Ethernet cable.  My question is this... If I set up a roaming network us

  • How to connect outlook express?

    How do I connect me to experess look?

  • restore service dependency for the network and sharing Center

    How to restore the dependency service or group who couldn't start for network and sharing Center?

  • The upgrade of the VSM and compatibility

    Hello everyone. I would like to upgrade our Nexus 1000v VSM 4.2 (1) SV1 (5.1) to 4.2 (1) SV2(2.1a) because we are heading of ESXi 5.0 update 3 to 5.5 ESXi in the near future. I was not able to find a list of compatibility for the new version when it