I am a beginner in Adobe LiveCycle application, and I apologize for any confusion, but if someone can help, how to make a dynamic form, with the following elements (the IBAN account):
1. Drop down list with name of state (Albania, Andora, ...)
2. text field with : 2 character of state (ex. Albania = 'AL', Andora = 'AN', ...) + variable number characters of each state comb of (number) character (ex. Albania 28, Andora 24, ...)
So, can something like:
if | (DropDownList2 == "Albanija") |
{
this.numericField3.ui.numericEdit.comb.numberOfCells = "28"
}
elseif (DropDownList2 == "Andora")
{
this.numericField3.ui.numericEdit.comb.numberOfCells = "24"
}
.....
endif;
Solved! Go to Solution.
Views
Replies
Total Likes
Is the form saved as a dynamic?
The following works in the attached.
// form1.page1.subform1.dd::exit - (JavaScript, client)
var str = this.rawValue;
switch (str) {
case "A":
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "9";
break;
case "B":
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "8";
break;
case "C":
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "7";
break;
default:
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "10";
break;
}
Steve
Views
Replies
Total Likes
Add the following code to EXIT event of your drop-down list.
Assuming that the second field value is NumericField1
Nith
Views
Replies
Total Likes
Thanks but Dont work !
Always display only 6 characters ... That is perhaps a problem in the EXIT event?
Is it possible to do something like:
If we have 24 fields (comb of character) (for Andorra IBAN account) to display the size of the field as a 24x0.2 ... ? where the field width is 0.2 character
Views
Replies
Total Likes
Is the form saved as a dynamic?
The following works in the attached.
// form1.page1.subform1.dd::exit - (JavaScript, client)
var str = this.rawValue;
switch (str) {
case "A":
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "9";
break;
case "B":
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "8";
break;
case "C":
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "7";
break;
default:
form1.page1.subform1.resolveNode("tf.ui.#textEdit.comb").numberOfCells = "10";
break;
}
Steve
Views
Replies
Total Likes
Thanks.
Whether you can send mail to see this example?
Something changed and I still is not working ...
Views
Replies
Total Likes
Views
Replies
Total Likes
Note the space introduced into "numberOfCell s" by cut-and-paste.
Steve
Views
Replies
Total Likes
Send your form to nith.mof@gmail.com
I will try to resolve the issue.
Nith
Views
Replies
Total Likes
We are sorry that due to health problems before I could get advice and help solve this problem. Here is something I made, so please advice whether it is wrong, and that if we are able to provide advice on the first three text fields, which may begin with a zero, so that they Formatting ...
It is also not clear to me why DDlist when we change the value after a few choices not display all the fields?
In any case, thank you for the advice and recommendation that you gave me ..
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies