Thank you alcdtrainer... so much!This code Works from you:if(N1.rawValue
== "M") N1.border.fill.color.value = "255,0,0";SO, I was able to figure
out what i needed ....if(N1.rawValue == "M") N1.font.fill.color.value =
"255,0,0";
I have been looking for a way to change the Fields's Text Color Based on
Valueif Textbox = A then A will be blueif Textbox = B then B will be red
I just need help getting the if then code working, changing the color
after that is easyAny Suggestions ..
So, A solution I found, but not sure it is the best came from this
thread: Re: how to calculate future datevar Emancipation = new
Date(DOB.formattedValue);var Adult = new Date(new
Date(Emancipation).setMonth(Emancipation.getMonth()+216));util.printd("mm/dd/yyyy",
Adult);I am using setMonth to +216 for 18 years ...It seems to work in
all my tests unless there is a better solution.
I normally use the old Text Field Trick in LiveCycle.Create a new Text
Field, Set your Text Justification Options and then change the Field to
Image Field.It will retain the Text Field Settings from before.. Used
that "trick" many times.
Need a little FormCalc OR JavaScript Help from the Community.Have a form
that has three fields ... Date Of Birth, Age, and Emancipation Date.User
Selects DOB, then I calculate Age: (Works Fine)if(DOB.rawValue ne null)
then Floor(((Date2Num(DOB.formattedValue, "MM/DD/YYYY") - Date()
)/365.25)*-1)endifThe Emancipation Date Field is the one I need some
help with.I need to Have that field Calculate the Date the person turns
18 if Age < 18I think the easiest way is just to add "18" to the YYYY
part i...
That is exacly what I thought of on the drive home this morning.I put
this in form ready:if ((ImageField.rawValue == null)) then
Page5.presence = "hidden";else Page5.presence = "visible";endifWould Doc
Ready be better then Form ready? ( Not really sure the difference to be
ready?
I have a form with the last page set to hidden.I have a button on the
last visible page ( Page 4) set to Page5.presence = "visible";This shows
the 5th page. Works Great until this point.When I click the button on
page 5 topmostSubform.Page5.instanceManager.addInstance(1); another page
is not added.I know it works with a visible page, but how do i overcome
this issue with hidden pages ??
The fix was to modify the code from:master[i-1][j] =
xmlData.nodes.item(i).nodes.item(j).value; the new lines
ismaster[i-1][j] = (xmlData.nodes.item(i).nodes.item(j).value == null) ?
"" : xmlData.nodes.item(i).nodes.item(j).value;This allows for null
(empty) fields, allowing the sort to work correctly------ Full Code
Below -------var col = 0; // column indexvar num = false; // Is numeric
columnvar OrderAsc = true; // Order of sortingfunction
SortTable(tableRef,colIndex,isNumeric,Asc){ try { col ...
In the Edit Field Put -
date{M/D/YY}|date{MM/DD/YYYY}|date{M-D-YY}|date{MM-DD-YYYY}In your
display field Put - date{DD-MMM-YYYY} or date{DD-MMM-YY} which ever you
perfer.Leave the Validation Blank.With that in the Edit Field, it will
correct if the user puts 04-01-1990 or 04/01/1990 and will convert to
your format when entered