since ‎04-06-2012
‎10-12-2019
dang_randy
Level 2
Re: How Do I Create Conditionally Required Check Boxes? dang_randy - Adobe LiveCycle
Clinton,close, but check how what the ravwalue will be when it is off or on. so i would do the following://if yes, then it opens the childif (parentcheckbox.rawValue == 1){ childbox1.access = "open" ...so forth}//if no, it will make the child readOnly and remove checks if they existif (parentcheckbox.rawValue == 0){ childbox1.access = "readOnly" childbox1.rawValue = "0" so forth for each childbox}//you can also use a case switch, but since this is only 2 options, if statements work well.//childb...
62
Views
0
Likes
0
Answers
Re: How Do I Create Conditionally Required Check Boxes? dang_randy - Adobe LiveCycle
additionally, in the parent checkbox you may want to add .rawValue = "" code. so if they first click the checkbox and then decide to uncheck, the child will need to be reset.let me know if you have any questions or I can help further.
54
Views
1
Like
0
Answers
Re: How Do I Create Conditionally Required Check Boxes? dang_randy - Adobe LiveCycle
Clinton,I am not sure how you check for required, do they submit via button?it will definitely be a challenge if they need to select at least one. so what I would normally do, is I have the code in each parent object which will open the child. I then use the submit button to check for required. here is what I would write.keep in mind, what values you setup in your checkbox:in the chebox parent:if (this.rawValue == 1){childbox1.access = "open"childbox2.access = "open" //do this for all your child...
54
Views
1
Like
0
Answers
Re: Loops through listbox for value, if does not exist, provide a error message. dang_randy - Adobe LiveCycle
FYI, here is my code:var oArr = [textbox].rawvaluevar oList = xfa.resolveNode([listbox].somExpression);var oListIndex;while (oArr.length!=0){oListIndex = [listbox].boundItem(oArr.pop());oList.setItemState(oListIndex-0,1);}
57
Views
0
Likes
0
Answers
Loops through listbox for value, if does not exist, provide a error message. dang_randy - Adobe LiveCycle
Hello:I have a listbox with Profession (text) and Price (value). I am using another field which they type in the profession. if the profession exists, bring back the price, if not, show an error message instead. Has any encountered this or know how I would go about solving scripting this?My loops looks for the values but if it isnt found, it will just go to the first entry.
353
Views
0
Likes
1
Answers and Comments
Re: Hyperlinks that open on a new page dang_randy - Adobe LiveCycle
Ashr1971,try this:app.launchURL("[enter the URL here]", true);
58
Views
0
Likes
0
Answers
Re: Text field tool appearance dang_randy - Adobe LiveCycle
forgot to mention, i usually put it in the initialize event but you can place it depending on your situation, also add statement and/or loops where need be.
55
Views
0
Likes
0
Answers
Re: Text field tool appearance dang_randy - Adobe LiveCycle
Marcie77,I am not sure how or if you can change the color of the value box while in design mode so it can be easier to view. But here is the code you can use to change the value box border using code which will appear when you use the PDF.this.ui.resolveNode("#textEdit").border.edge.color.value = "0,101,164"; //whatever RGB color you want to usethis.ui.resolveNode("#textEdit").border.edge.thickness = "0.0200in" //the thickness of the borderyou will need to change "#textEdit" depending on field t...
53
Views
0
Likes
0
Answers
Re: Get rawvalue(index) from Listbox using FormattedValue dang_randy - Adobe LiveCycle
additionally, the above code was used to figure out what the index was for a specific formattedvalue in a listbox. here is the code which I used to use it to look up a value in another listbox. check = xfa.resolveNode([listbox 2 which has the value you need).getDisplayItem([listbox1 where you selected the formattedvalue in the code above]);
133
Views
1
Like
0
Answers
Re: Get rawvalue(index) from Listbox using FormattedValue dang_randy - Adobe LiveCycle
I resolved my issues. here is the code I developed to get the job done. it could be simplified a little further but it worked well.I put it in the enter action.var checkValue = [dropdown1].rawValue + [dropdown2].formattedValue + ", "var oArr = checkValue.split(", ");var oList = xfa.resolveNode([listbox with the index and concat values].somExpression);var oListIndex;while (oArr.length!=0){oListIndex = oList.boundItem(oArr.pop());oList.setItemState(oListIndex-0,1);}NOTE: You can add if statement t...
102
Views
0
Likes
0
Answers
Re: Get rawvalue(index) from Listbox using FormattedValue dang_randy - Adobe LiveCycle
long story...the form is connected to a database but it is sent to a external contact where we want to validate real-time prices. so, we are pushing the data into multiple listboxs because they wouldnt have the db connection. after i get the index, i will know which value to use in another listbox (which is defined depending on another dropdown selection)Can you help me understand how you would compare the combined dropdown? my one other issue is they could manually type a country and if we do n...
102
Views
0
Likes
0
Answers
Re: Get rawvalue(index) from Listbox using FormattedValue dang_randy - Adobe LiveCycle
TundraSteve,Not exactly, my main issue is to find the index value of the specific formattedvalue in the listbox. here is an example which hopefully will better explain:DD1 - US, China, etc.DD2 - Job1, Job2, etc.Listbox - 1 | USJob12 | USJob23 | ChinaJob14 | ChinaJob2By using the top two dropdowns, can I get the index value? so if someone picks China and Job1, I can get index 3? I know how to aggregate the formattedvalues.
101
Views
0
Likes
0
Answers
Get rawvalue(index) from Listbox using FormattedValue dang_randy - Adobe LiveCycle
I have two dropdowns with two different sets of data. one with country and another with profession.I have a listbox with the all the possible country/profession combined as a formattedvalue. how can I get the rawvalue/index using the formattedvalue from the two fields above.I will pick a specific country and profession and then I need to get the index of that combo in the listbox.Any help would be appreciated.
1221
Views
0
Likes
6
Answers and Comments
Adobe Livecycle and SQL Server Conditional Dropdowns dang_randy - Adobe LiveCycle
Hello All,I am trying to figure it out but have a little difficulty. I have two dropdowns connected to a SQL database (for this purpose DD1 and DD2). I need to be able to make the dropdowns conditional.Example:SQL DBFruit | ColorApple | GreenApple | RedApple | PurpleApple | WhitePlum | PurplePlum | Light PurplePlum | BlackDD1 will ask what the fruit will be. DD2 will ask the color depending on DD1.
553
Views
0
Likes
1
Answers and Comments
Re: How can I set an object to read only or protected without it disappearing? dang_randy - Adobe LiveCycle
Tammy, I would have to say this functionality isnt available but ill let the Adobe Gods confirm that. When it is readOnly, you cannot see the dropdown list. Is there a need for them to see it if they cant make a selection until they select a checkbox?Regards,Randy
107
Views
0
Likes
0
Answers
Re: conditional drop down list bind with sqlserver database dang_randy - Adobe LiveCycle
Jodi,I know this is a old reply but i thought I give you some pointers.Reviewing your code, I noticed the if statement is a little off. you state in the variable it is type is "Contracttype.rawValue", so in your beginning if statement, your saying Contracttype.rawValue.rawValue = "text1".it should be ~ if (type == "text1"){I assume you know the difference between rawValue and formattedValue. anyway, i think the blank is what is hurting you also when it comes to the add item.all if statements sho...
52
Views
0
Likes
0
Answers
Re: HELP: Can't Pass Parameters w/Stored Procedure as Data Connection dang_randy - Adobe LiveCycle
had this same issue. following works for me.-create a dataconnection to the db with a random query to the table.-just clone the dataconnection oDConn = xfa.sourceSet.DataConnection.clone(1);-change the query attribute to the stored procedure oDConn.resolveNode("#command").query.select.value = "exec spEmpApp 'parameter'"-open the cloned data connection oDconn.open();
814
Views
0
Likes
1
Replies
Email Submit Button to send message but no PDF attachment dang_randy - Adobe LiveCycle
Hello:I have a PDF form with alot of information. I have a submit button which needs to send an email to someone with pieces of the information but doesnt need the PDF document. At the moment, I have manipulate the msg, subject, cc, bcc, etc.. but I cannot get it to stop attaching the document. anyone know how I can update my code for this?var oDoc = event.target; oDoc.mailDoc({ bUI: false, cTo: textbox.rawValue, cCc: textbox1.rawValue, cSubject: "AWARDED " cMsg: "hello custom message"})
2416
Views
0
Likes
4
Answers and Comments
Adobe Form to direct XML Data to FTP Server dang_randy - Adobe LiveCycle
Hello:I had created a Adobe form connected to a MIcrosoft Database which will provide data connections and import data into the access database. As the information in the PDF form is used to populate a application, I would like to have the form when submitted to send a XML file with only the specific data they need to the FTP server. Has anyone experienced this? or know of a possible solution?Regards,Randy
520
Views
0
Likes
0
Answers and Comments
Adobe Form built in designer to redirect to FTP Server dang_randy - Adobe LiveCycle
Hello:I had created a Adobe form connected to a MIcrosoft Database which will provide data connections and import data into the access database. As the information in the PDF form is used to populate a application, I would like to have the form when submitted send a XML file with only the specific data they need to the FTP server. Has anyone experienced this? or know of a possible solution?Regards,Randy
394
Views
0
Likes
0
Answers and Comments
Likes given to
Likes from