send several ID field of unique text through drop-down lists
Hello
It drives me crazy.
I have x 3 drop-down menus 'Day' "Month" "Year" and I want to send these parts to a single rating marked with the id 'date' to compensate for a syntax correct date without refreshing or send the form. I use getelementbyid to send the onchange = "getAmount (this.id) request for drop-down list", but it sends only an id and when the next drop-down list is selected it replaces the previous selection, rather than putting all of this together in correct date format. "
Here is the code I use, but it is clearly wrong: -.
Each drop-down list: -.
getAmount (this.id)
and then the following javascript code to send the ID
< script type = "text/javascript" >
function getAmount (optText)
{
var salt = document.getElementById (optText);
document.getElementById("date","['EventDayID_<?php_echo_$cnt1;_?>','EventMonthID_<?php_echo_$cnt1;_?>','EventYearID_<?php_echo_$cnt1;_?>']").value = sel.getElementsByTagName ("option") [sel.selectedIndex] .innerHTML;
}
< /script >
and the input field I want to enter the full date: -.
< input type = "text" name = "" id = "date" / >
Is anyine knows how to handle this?
Thank you very much
Glennyboy
You only need one identifying any...
Change your Mysql in bulk or add check boxes used or unused:
SELECT * FROM table WHERE IS NULL or IS NOT NULL column
You can extend your
SELECT * FROM table WHERE column1 = something AND column2 IS NOT NULL
or
you check every box before printing it, if (cb1! = "" or cb1 == "") {echo/print/do something ;}
Thank you
J
Tags: Dreamweaver
Similar Questions
-
How to fill two text fields based on a simple drop down list
I'm trying to set up a form so that the two text fields will fill with a text by default (separate for each text field) at the same time.
Here is a screenshot of the fields.
Thus, for example, if I select Utah in the drop-down list in 'State', ' OH Fund Center "is automatically filled in with APWSWR4949 and"OH WBS"is automatically filled in with WR49.73.0003.
I have a similar script for down text in form fields, but the script does not work. I tried the following script:
var v1 = this.getField("RecState").valueAsString;
If (v1 == "Utah") event.value = APWSWR4949;
else event.value = "";
However, it would not AutoFill OH Fund Center area. And I have no idea how complete both fields at the same time.
Any help would be greatly appreciated.
Thank you!
Crystal
Strings must be enclosed in quotation marks. So change your code:
var v1 = this.getField("RecState").valueAsString; if (v1=="Utah") event.value = "APWSWR4949"; else event.value = "";
If it works, then you can use code similar to your other field.
-
Show / hide the text box drop-down list database
Hi all
First time post here - wahoo! :-) Brand new user of LiveCycle, and so far I'm loving - very cool app! I am a bit puzzled, however, and hoping someone can help...
I am using LiveCycle version 8.05 and try to build a form that has a drop-down list with departments in our Organization. If the user selects the elements 1-5 on my list, I want two other fields at autopopulated (one for the Admin Assistant) and one for Dept Head. If however the user selects 'Other', I want a text box (it will be hidden the rest of the time) where the person will be able to type in the Department they work for. For now, I'm only interested on getting the box 'Other' to appear; I'll worry about the other stuff later.
Elsewhere in my form, I have a functioning drop-down list that displays a text based on the selection field; However, for some reason this logic does not work with the situation described above.
My code for the working text field is (in JavaScript)
var (sNewSel) case "1": switch { TextField6.rawValue = "My text is in here"; break; case "2": = "My second text is in here "; break; "3": case = "My third text is in here."; break; TextField6.rawValue default: } break; TextField6.rawValue sNewSel = this.boundItem(xfa.event.newText);
After many fruitless hours yesterday, I got only to the extent where the code below; This was more or less copied right out of a post here. When I click on the drop-down list, select 'Other', the text field is displayed. I tried the definition of the text field to the times 'Hidden' and 'Visible' through properties of the object, but no luck. I tried to use IF statements, subforms and anything else I could think of but am getting nowhere.
var nSubLength = Subform1.nodes.length; var sSelectField for {if {switch (xfa.event.newText) (case "6": Subform1.nodes.item(nCount).presence break default: Subform1.nodes.item(nCount).presence break } } } ; = "invisible";;= "visible";((Subform1.nodes.item(nCount).className == "field") &(Subform1.nodes.item(nCount).name== sSelectField)) (var nCount = 0; nCount < nSubLength; nCount++) sSelectField = fieldList.rawValue; = sSelectField.replace(' ', '');
Any ideas? This is very new to me, but I am familiar with other programming languages, and something this simple should not be difficult which leads me to think I'm missing something.
Thanks in advance
Chris
It was easier to create a sample for you... Please see the attachment. I think that's what you want.
The code is on the change event of the DDList
Paul
-
Show drop-down list field hide selection in another drop-down list box
Hello I need to create two drop-down fields on a dynamic PDF in LiveCycle. The first field contains three choices. When a user selects an item in the drop-down list first I would like to a new field of drop-down list has been shown. For each item in the first drop-down list appears a new field drop-down list with unique values. If the user chooses blue drop-down list of blue shades indicate in this menu drop-down will be various shades of blue to choose for. If the Red is chosen, Shades of Red dropdown with appearance and if yellow is displayed the same occurs. Also if the user must go back and change their selection in the first drop-down list, they can do the same. Any suggestions?
Thank you in advance.
There are 2 ways you could do this. The first is just to have the 3 drop-down lists for the second box to separate and do them all hidden. The output of the first dropdown event would then have the code that would make it the second box become visible, something like (in formcalc):
If ($ == 1) then
dropdownRed.presence = "visible".
dropdownBlue.presence = "hidden".
dropdownYellow.presence = "hidden".
ElseIf ($ == 2) then
dropdownRed.presence = "hidden".
dropdownBlue.presence = "visible".
dropdownYellow.presence = "hidden".
ElseIf ($ == 3) then
dropdownRed.presence = "hidden".
dropdownBlue.presence = "hidden".
dropdownYellow.presence = "visible".
endif
The other option is just to have a dropdown that dynamically changes its options based on the results of the first box. So in the second box preOpen event you might have something like (in formcalc):
If (dropdown1 == 1) then
$. clearItems()
$.setItems ("light red, dark red")
ElseIf (dropdown1 == 2) then
$. clearItems()
$.setItems ("sky blue, dark blue")
ElseIf (dropdown1 == 3) then
$. clearItems()
$.setItems ("light yellow, dark yellow")
endif
-
Filling of a numeric field by selecting from a drop-down list
Hello all;
I went through the 38 pages on the form now to try to understand it myself. I must have missed something or this day becomes medium long.
I am filling a numeric field that is based on what is selected in a drop-down list box.
For the test, I use only 2 fields
DropDownList1 and digital Field1
I If (DropDownList1.rawValue == 1) { }
NumericField1.rawValue = 25;
}
On the other;
(DropDownList1.rawValue == 2) { }
NumericField1.rawValue = 35;
}
That worked. I am now getting the error "missing; before the statement
"6:xfa: form1 [0]: #subform [0]: DropDownList [0]: output"
Specify the value of points is checked in the tab links for DropDownList1.
I said this with a single selection, who worked
if (DropDownList1.rawValue == 1) { }
NumericField1.rawValue = 25;
}
Thank you all
Chomp
If it's a copy/paste of your script, you have a semicolon after the "else" and "else" should be lowercase.
And for nested IFS, you need an "else if", so:
If (DropDownList1.rawValue == 1) {}
NumericField1.rawValue = 25;
}
Else if (DropDownList1.rawValue == 2) {}
NumericField1.rawValue = 35;
}
ElseIf...
If you have a lot of statements, you might want to look at using a statement that may be easier to read.
{Switch (DropDownList1.RawValue)}
case '1 ':
NumericField1.rawValue = 25;
break;
case '2 ':
NumericField1.rawValue = 35;
break;
etc.
}
-
How to drive the content of a text field or table from a drop-down list selection cell?
Users will choose an option in a menu drop-down. I want their selection to control the contents of the cells in a table or text elsewhere on the form fields.
For example, 'The coldest season of the year' by selecting 'winter' in the menu drop-down displays in a table cell.
Thanks in advance for the help.
Nick
Hi Nick,
Here are some examples:
https://Acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q
https://Acrobat.com/#d=20lQl9JfL19aBtbPC1WYbw
https://Acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A
If you open these in LC Designer, you can view the script by selecting the menu drop down and looking at the script at the top of the window Editor. If the script editor is a single line, you can drag the lower edge to make it bigger.
Good luck
Niall
-
The floating field value based on the drop-down list selection (sex)
Hi, I have created a form that will have different fields, dropdowns etc where the answers will fill a range of fields floating in a letter. I would like to have a list drop-down for sex (m/f) and if selected, either fill in the letter as 'he' or 'she. ' Is this possible?
Hello
Here are some ways to do it in this sample https://sites.google.com/site/livecycledesignercookbooks/home/HeShe.pdf?attredirects=0&d=1
Unrolling of male/female can have a bound value from it, which means we can do refers to the value directly, without however going any calculation. Is there are a lot of places where it needs to be replaced, then you can simplify things by making reference to the field to form directly, although this requires to change the XML, but if you won't find yourself with a hidden for each instance field. Or you could edit the XML Source and change the reference for the same id of a floating field. There are examples of both in the sample linked above.
Concerning
Bruce
-
How to influence the APEX 4.0 autocomplete text element drop-down list colors?
Hello
Could some body if you please tell me the model that I need to change?
I use the 15 theme and the text with AutoComplete element has a very different color scheme, I would like to change, so that it would harmonize with the theme 15 colors. It's just that I can't find the model to change. TIA.
TamásTamas
There is no model for the AutoComplete element. His appearance is controlled entirely using CSS. Theme 15 includes a style on the theme of AutoComplete items: she descends to a generic schema that is specified in the apex_4_0.css style sheet:
.ac_results { padding: 0; border: 1px solid black; background-color: white; overflow: hidden; z-index: 99999; } .ac_results ul { width: 100%; list-style-position: outside; list-style: none; padding: 0; margin: 0; } .ac_results li { margin: 0; padding: 2px 5px; cursor: default; display: block; font: menu; font-size: 12px; line-height: 16px; overflow: hidden; } .ac_results li { margin: 0; padding: 2px 5px; cursor: default; display: block; font: menu; font-size: 12px; line-height: 16px; overflow: hidden; } .ac_loading { background: white url('indicator.gif') right center no-repeat; } .ac_odd { background-color: #eee; } .ac_over { background-color: #0A246A; color: white; }
The best approach would be to use a tool to identify what web Inspector that each of these rules in the context of the use of the AutoComplete element and create your own theme-15-friendly style sheet to override this subset of apex_4_0.css.
-
Hey all -
While trying to create a certificate, I noticed that the widget was not found in the Open box in drop learning interaction:
When I looked under Insert: Widgets, I was taken to the Gallery on my C drive and open the Widgets folder, only to find empty folders or just the FLA source files. I have found the widget files in the folder of Interactions in the gallery and did notice there is a little more widgets displayed above:
Seems a bit intuitive meter, and is certainly not the way in which the normal user finds these things, no? My main concern is over the two latest updates and installs new e-Learning Asset, how much of the new material that has been available to Cp8 users I'm actually access to and how much is hidden in places that I normally do not dig in? Any help would be appreciated.
For your information, Cp8.01.242 running on a Win7 OS - no admin rights - must leave all install and cannot progress without their help.
Justenuf
It is also possible that your widgets update downloads when you have Admin rights. Since you mention that you don't have it and should participate in updates, which could also help to explain your situation.
-
Using a choice of multiple words in a drop-down list field to launch a java script
I'm a complete newbie to manuscript of java and relatively new to your building in Acrobat.
I use a drop-down list field to fill in automatically other fields based on my 1st drop-down list selection.
The 1st field drop-down allows me to select a variety of suppliers. Once I have selected the vendor, he auto-remplit the coordinates for this provider.
I've plagiarized the writing of scripts from this link: https://acrobatusers.com/tutorials/change_another_field. I even changed my domain names for the moment. I'll change my return form field names and the script to match once I got it working like I want.
If I use only one name in my drop down list provider (1 field), the script works perfectly and auto-remplit contact as expected information. However, many of my suppliers are two words or more... and I need those names in print, so I can't do just a contraction of a Word. Here is the script I use:
Here is an example of a supplier of single word name that works as expected:
Put all vorkriegsbevölkerung data in a single data structure
var DeptData = {ADLEMI: {contact: "P.O. BOX 2371",}}
E-mail: "DOWNEY, CA 90242."
{{deptnum: "PHONE: (562) 923-0333 FAX: (562) 923-8111 '}};
function SetFieldValues (cDeptName)
{
this.getField("DeptContact").value = DeptData [cDeptName] .contact.
this.getField("DeptEmail").value = DeptData [cDeptName] .email;
this.getField("DeptNumber").value = DeptData [cDeptName] .deptnum;
}Unique provider name, I used in the example above is "ADLEMI." If I add 'BEST' to ADLEMI (see below), I get a syntax error. I really need to be able to use several words in my list drop-down provider to trigger auto-fill.
Put all vorkriegsbevölkerung data in a single data structure
var DeptData = {ADLEMI BEST: {contact: "P.O. BOX 2371",}}
E-mail: "DOWNEY, CA 90242."
{{deptnum: "PHONE: (562) 923-0333 FAX: (562) 923-8111 '}};
function SetFieldValues (cDeptName)
{
this.getField("DeptContact").value = DeptData [cDeptName] .contact.
this.getField("DeptEmail").value = DeptData [cDeptName] .email;
this.getField("DeptNumber").value = DeptData [cDeptName] .deptnum;
}
The only difference is that I added a space and the word 'BEST' after ADLEMI. Is there a way to get around this. I need to have several words in my drop-down list, or at least the full name of the vendor indicating in the field when I print it.
Thank you
Place quotation marks around the name of the element.
Monday, April 13, 2015, at 17:29, bpwhistler, [email protected]>
-
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
-
Hi, I want to change the color of the text in drop-down list because I want to set background color.
How to do this?
Thank you
He suggests as a feature on jira. or write a custom, component drop-down list does not support this.
-
Drop-down list data connection - several text fields-
Hello to you all, guru out there. I'm new on Adobe LiveCycle, but I have some experience coding in other languages, but not of JavaScript and XML. Trying to get a user to select a client and then based on this selection, I want to return several address fields, a Contact name at the customer's location and a phone number. The data connection is an ODBC connection to our CRM software, and information are stored in a table. The user of the form will be our Service technicians, and the rest of the form will be a place to type notes about the service call. We just try to facilitate the choice of the customer for our Service technicians to rather than having to type all the information. I've searched the forums and the solutions that I keep coming across are values defined by the user in the drop-down list, I have not found an example that illustrates this with a data connection. I work from a return address field to a text field (using the command .rawValue), but I need to fill in some more information. Any guidance would be greatly appreciated.
Thanking you in advance,
SSCLadam
THW way I did is to use two data connections. 1st one to fill the DDlist with a list of customers. In this one, I use simple bind to do the job. Then a 2nd connection that will extract the folder of figurines based on the selection of the DDlist. This requires the code a SQL DB to retrieve the appropriate record. To implement this data connection, I can use the provided column headers to bind columns in the fields in my form. Then when this data connection is open (I put to delayed opening) and it returns the file in question are bound fields get automagically populated!
I've included a sample I created... .you won't have the Pb, but you can at least see what I did. The code is on the change event of the DDlist
Hope that helps
Paul
-
Several problems with embedded DHTML menu text boxes, drop-down
We have recently improved HR 10 HR 2015. We know a menu dhtml drop-down text question existed prior to the upgrade and the upgrade did not fix it. We now have a more serious problem. We are not certain that all started with the upgrade, but we detected it after you convert our projects to HR 2015 and republish them. I list both here in case they are connected.
The problem known: styles of multilevel list to the level of the main topic and within the text box drop-down dhtml to first level. However, if we add a drop-down list box text in a drop-down text box and apply a list style at several levels to the text in the drop-down text embedded dhtml, the topic seems in good shape on the Design tab, but loses the line numbers or bullets in the preview and in the published version. No idea what would cause the list not to display properly or how to get the multilevel list styles to work in this situation? (Yes, we know we can use styles list rather than multilevel list styles, but it is problematic, too)
The novelty is that, when content is published and read in IE or Chrome (the two major browsers use customers), the drop-down text link embedded dhtml is always present, but the text in the drop-down list embedded dhtml has disappeared (for example, nothing happens when you click on the link to open the text box). It works in preview, but not when accessed through a browser (or access to the content of webhelp after publication to a server directly from my local computer). Any ideas on how to get it to display? The net result for our users, is that a substantial PART of the content of the assistance amount is now more accessible.
Thanks in advance for any help you can provide to these questions!
Here are a few things that I would consider trying.
First, click on Tools > update DHTML and let it do its thing.
A test to see if something has changed. If so, great!
If the problem persists, open one of the samples project. Click here to see a video on how to do
Then open Windows Explorer. Click here to see a video on how to do
Find and copy a file called ehlpdhtm.js and return to your project and paste this file into so that it replaces the one that is there.
Then see if things are better.
See you soon... Rick
-
Auto complete text field drop-down list gets disoriented
Hello
I developed a page of connection with a field of user name and password, I made the username field to be 'Text with AutoComplete' and gave the sql code to fetch the result of falling down, while when I apply a style to overried the position of the region using the left and right drop-down list style attribute appers in the screen is not what I need. Can someone help me. I use Apex 4.2
Thanks in advance
Published by: eldho45 on December 10, 2012 20:42Joel_C wrote:
fac586 wrote:
eldho45 wrote:
Thanks a lot for your concern
My concern is that the security implications to use AutoComplete on a connection user name. This allows the infamous capture user names for each user on the system to work their way through the alphabet by KeyDown keypress without effort.
Could be an internal site (i.e. not exposed on the web).
Makes no difference. Internal hacking/fraud is still hacking/fraud. And it is much more likely to succeed. The negative person on the inside knows the details of partners/children/animals-domestic/cars their colleagues who will be in their passwords.
In addition, I'm sure it'll be fine because everybody uses passwords to secure great Don't they?
... pa55word rangers1874 simplythebest cfc1888 trustnoone ...
UM *.
sevco2012?
Maybe you are looking for
-
After that the most recent iTunes updated, the ability to reset the counter to play songs seems to be missing. Is there a way to reset the counter of my songs?
-
I made sure that all my plug-ins including Flash are updated, I am also running the latest version of the LastPass plug-in. Everything seems allowed correctly, but I don't get the LastPass icon in the toolbar and no access to my passwords.
-
OfficeJet 4650: Can't download updates for OfficeJet 4650
Windows told me that I have updated to my HP. It is: "Hewlett-Packard - Company WSD printer multifunction, other series of HP OfficeJet 4650 material - Null Print -". I tried to download it twice but got the error: "Code 8001020 B Windows Update has
-
In Word 2002, how to remove a word to always document?
in Word 2002, how to remove a word permanently document?
-
whence the free space on the disk?
My mommy vista computer suddenly released 7 GB of free space, even if nothing has been deleted and then uninstalled. is this normal in vista or can it be a virus