Hi. I am glad it is working for you. the code can be unnecessarily
complicated sometimes. I am still just learning so it is frustrating. I
used this code for mine. I will insert your field names so you
can(hopefully) just copy and paste it in. The language will need to be
set to FormCalc.if((form1.SSA.SF_Approver2RIF.Approver2RIFDate.rawValue
== null) or (form1.SSA.SF_Approver2RIF.Approver2RIFName.rawValue ==
null))thenxfa.host.messageBox("Please fill in all required
on the calculate event of the field you want to show the total, enter
this code.sum (Field1, Field2, Field3, Field4)replace the "Field" parts
with the desired fields. when entering the code ctrl+click the sections
you want to calculate and separate them with a comma. This will get the
absolute name for the objects to be referenced.
the problem may be that you have to reference the object not just by
name. It would need to be referenced by its name in association to the
object where the script is placed. Livecycle designer has a handy tool(I
hope for your version as well). if you(while writing script) ctrl+click
the object you want to point to, it will automatically populate its
correct name needed for referencing from the object being scripted. I
hope this can help.
You can make a print button and make it hidden. On the post submit event
add:Print.Button.rawValue.presence = "visible";this will make the print
button show up after the form is submitted.If you are trying to disable
printing altogether before submission you will need a few more scripts
in places.In the preprint event, add this script(ifPrint.button.presence
= "hidden";thenxfa.event.cancelAction = 1endifthis should cause an error
message saying print cancelled if the user presses ctrl+p or goes ...
I am limited with Livecycle but I am going to try to help you as best I
can. This solution may be helpful.For field A you will need a script.
below.(ifText.Field.A.rawValue == 4thenText.FIeld.B.rawValue ==
17elseifText.Field.A.rawValue == 5thenText.Field.B.rawValue
==21endifThis code should get you on the right track. You can repeat
sections of this code to allow for more bindings. Please forgive any
scripting mistakes. As I said, ...
This may be an overcomplicated solution but maybe an if statement in the
second field you want to populate.In the field you want to populate
quantity place a script similar to this. Bear in mind this will require
a few lines of script per value you want bound.(ifDropdown.rawValue ==
1then$.rawValue == Quanity1elseifdropdown.rawValue == 2then$.rawValue ==
Quanity2endifthis code basically says if dropdown value is 1, this field
will be "1" where "1" is whatever value you want associated with
I am an amateur but I have decided to start helping as much as possible
on these forums.I have had a similar problem in the past and did find a
solution. I cant say for certain that it is the best solution, but
seeing as each button only has 3 required fields, it is a feasible
solution.So here goes the complicated but also kinda simple solution
that will work. Please bear in mind my scripting experience is
limited.For the first submit button allow the script to stay in its
natural state. Make su...
I am kind of an amateur. I have really only been using Livecycle for
about a month and a half but this forum has been invaluable so I figured
I should contribute back as best I can.Ok so your issue is that you want
Fields B and C to show value 0 if Field a's value is less than 10.Using
the exit event of field A.(if Text.Field.A.rawValue <
10;thenText.FIeld.B.rawValue == 0;Text.FIeld.B.rawValue ==
0;endif)please excuse any scri...