Are you using LiveCycle Designer? If so, your script syntax is incorrect. Try this on the change event of the check box (formCalc):if(Temp == "1")then LowTempLOFF.presence = "visible" LowTempLOFF.relevant = "-print"else LowTempLOFF.Presence = "hidden"endifcheers,StephenPS. there is good ...
Hi,What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into: var fullCount = 3 var currentString = xfa.event.newText if(Len(currentString) >= fullCount)then xfa.host.setFocus("TextField2") ...
It is the same script--just modified. Remove the 35 - Now it counts up, instead of down. shortitle = 35 - Len(xfa.event.newText)Modified: shortitle = Len(xfa.event.newText)
Two methods come to mind:1) Use a button with the resetData() function on the click event. This requires an "absolute-SOM" in quotes, as in this example: xfa.host.resetData("form1.MainSubform.RadioButtonList");2) Add a radio botton with "None" as a choice--this allows the user to unselect all ot...
I have tested the script in your form which I downloaded and it works. What you are describing generally happens when you use the "Calculate" event. To be clear, place the script on the CHANGE event of the field the user is typing into. The number of characters left automatically displays in the "sh...
SOM (in this case) simply means the name of your field. Your field is named "shortitle". Change the script to:shortitle = 35 - Len(xfa.event.newText)Good luck!Stephen
Hi,Using (in this example) formCalc, in the change event of the text field being counted: displayCountdownNumField = 500 - Len(xfa.event.newText)In this case, it is 500 maximum and you'll need the SOM for displayCountdownFieldCheers,Stephen
Judging from your script, it looks as though you have declared a function "count()" in your footnotes_count script object. I believe that the trouble is "count()" is already a built-in function and therefore a reserved name(i.e. you can't use it for your function). Try renaming your function and se...
I have to assume there are the folloing fields in a repeating table row:DropDownEachPriceQuantTotalAmtIn the Calculate Event of the TotalAmt field of each row (using FormCalc): $ = EachPrice * QuantKeep in mind, my field names are arbitrary--you must use your field namesThen, for the calculation...