since ‎04-03-2009
‎10-12-2019
SunsV
Level 2
Re: Simple? Allow page breaks, but don't break a captioned text field to begin with.
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi Mouselander - that is correct.In physical terms, each text field (with caption) starts off about say 6 lines deep max. So when the form is empty there can be as many as 5 of these up on an A4 page. The problem arises when say the first of these 5 fields starts to get populated beyond a few lines - it shunts all the other fields further down as you would expect leaving the fifth perched between two pages - a bit ugly. This would be fine - I could just uncheck the 'allow to break between pages'...

Views

227

Likes

0

Replies

0
Re: Livecycle Designer - print pages from expanding sections
Avatar

SunsV

SunsV
- Adobe LiveCycle
Okay, so after some research I can see that the reason why it's not working is because the functions are working asynchronously ... so irrespective of the order, they all work pretty much at the same time. Problem is, I'm not sure about how to go about splitting them into two sections (hide the info panels FOLLOWED BY printing the section). I think I may need a set time out or a callback function. Can anyone help?

Views

184

Likes

0

Replies

0
Re: Livecycle Designer - print pages from expanding sections
Avatar

SunsV

SunsV
- Adobe LiveCycle
Ahh, no, it doesn't quite work.Throughout a section I have info boxes - these are text boxes wrapped in a subform called info1a, info1b etc. which are set to be hidden pre print - and post print they are set to visible. This works in itself.However the code above still counts the page numbers within the section prior to the info boxes being hidden - in other words, the info boxes cause the pages to be printed to extend beyond the section as if the info boxes were still there, even though they ar...

Views

184

Likes

0

Replies

0
Simple? Allow page breaks, but don't break a captioned text field to begin with.
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi there,I think this is a simple one (hopefully).I have a flowed form (dynamic). In one section I have multiple text fields, one after another flowing from top to bottom. There are about 15 of these. The text files all have captions - some of them running into several lines. Each text filed is expandable - they start off as 4 lines deep approx, but could well be pages long depending on what the user enters.My question is, how do I set up each text field (or the subform wrapper) so that the page...

Views

690

Likes

0

Replies

3
Re: going back to a page/section previously viewed
Avatar

SunsV

SunsV
- Adobe LiveCycle
ahhh, okay, didn't think that was possible. Like I said, I'm relatively new to this and have been getting by with the good help of others and the in-built editor which is limited to say the least. Is this something you could give me a steer on?Thanks for all your help - greatly appreciated!

Views

237

Likes

0

Replies

0
Re: going back to a page/section previously viewed
Avatar

SunsV

SunsV
- Adobe LiveCycle
Thanks for the reply mouselander.I think I get where you're coming from. The issue I have is that I don't want a print button to appear within the body of the form (as it can, and does, expand dramatically when the user enters text into the fields). My initial solution was to put a print icon in the footer of each master page (each master page is a section of the form, and there are about 8 of these sections). In doing this I can reference a go back to section button in the 'printing section' bu...

Views

240

Likes

0

Replies

0
Re: going back to a page/section previously viewed
Avatar

SunsV

SunsV
- Adobe LiveCycle
I've changed my thinking on this (and so I have a new problem!). My worry was that in terms of usability I just didn't like the idea of a user jumping from one page to another in the form without being able to return - though do let me know if this is even possible!Instead I've decided to ask about a dialogue box which will give options. This is a new problem, so please read here:creating a print dialogue box with options

Views

238

Likes

0

Replies

0
creating a print dialogue box with options
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi there,I'm struggling with an issue of usability.I have a complex form which increases in size when the user enters more text - many pages where there are info boxes of text that are hidden when printing - this has a knock on effect that page numbers on screen don't match page numbers when printing.I got help from Radzmar (thank you!) who gave me the code for a print button that prints a section rather than a page number span; so when the user clicks the button:var vObj = xfa.resolveNode("form...

Views

202

Likes

0

Replies

0
going back to a page/section previously viewed
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi there,I have a large form spanning over many pages which is flowable - so it can grow in size depending on the data inputted. Because of this I have managed to create buttons which can print sections rather than page numbers, which works well. because of the size of the form, I have placed all these print buttons on one page at the end of the form - think of it as a table of contents with buttons instead of page numbers if that makes sense. I'll call this the 'printing section'The problem wit...

Views

670

Likes

0

Replies

6
Re: Livecycle Designer - print pages from expanding sections
Avatar

SunsV

SunsV
- Adobe LiveCycle
Radzmar,Apologies for not responding earlier - been involved in other projects. Just wanted to say thank you very very much - the code you gave works perfectly. Many thanks,Sunil

Views

187

Likes

0

Replies

0
Livecycle Designer - print pages from expanding sections
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi,I have a possibly complex situation. I have a large form divided into about 5 sections. Each section has expanding text fields and information panels. The information panels are there to help the user fill out each field with appropriate information, however, when the form is printed the info panels are set to disappear. This all works fine as it should do.However, the client has had feedback and sometimes they want to print out single sections. What they have been doing is noting down the pa...

Views

648

Like

1

Replies

4
Re: always fill out the very last row of a table (which can expand)
Avatar

SunsV

SunsV
- Adobe LiveCycle
Many many thanks Bruce - this seems to work well. The remove buttons in each table are independent so they don't need to link. I need to reincorporate it into the real document, but can't see there being a problem.Thanks for all your help!Sunil

Views

194

Likes

0

Replies

0
Re: always fill out the very last row of a table (which can expand)
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi Bruce and everyone else.Here's a link to my file. It has come from a very large form, so I've cut it down to help. It's simply called test1.pdf.I've also done some screenshots to illustrate the problem - as you'll see it looks as if it is working, but then starts to fail by overriding existing rows.I really would appreciate some help with this as I can't figure it out myself.Sunil

Views

197

Likes

0

Replies

0
Re: Populating from one table cell in one table to another cell in another table - confusing results
Avatar

SunsV

SunsV
- Adobe LiveCycle
I'm still struggling with this, but have revamped the question and almost got it to work. I've started a new thread with a more succinct question here: always fill out the very last row of a table (which can expand)

Views

180

Likes

0

Replies

0
always fill out the very last row of a table (which can expand)
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi, I'm having problems with a button in table A that adds a row to another table (table B) and then automatically fills out some of the table row data (table A) into the newly created row of the other table (table B)Here's my code (on click of button in a row of Table A) - I should also mention that Table A has a button to add more rows to itself:This almost works - however, it only works if the amount of rows in each table match - which they don't necessarily as the user may or may not opt to ...

Views

445

Likes

0

Replies

4
Re: Populating from one table cell in one table to another cell in another table - confusing results
Avatar

SunsV

SunsV
- Adobe LiveCycle
sorry to bump this, but does anyone have an idea? Being a bit stuck here.

Views

180

Likes

0

Replies

0
Populating from one table cell in one table to another cell in another table - confusing results
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi, really hope someone can help because I feel like I'm almost there... just not quite!Here's what I have:Two tables. One is called 'plantable' - this is an expanding table in so much as the user can click a button and it will add a new empty row. Within this row there is a button to remove the row (working fine), six text field cells where users can add text. Two of these text cells are called 'wb' and 'better' - this is important as they come into play later. There's also a button called 'Sen...

Views

546

Likes

0

Replies

2
Re: Message box not appearing - function not functioning!
Avatar

SunsV

SunsV
- Adobe LiveCycle
MANY many thanks BR001 - that worked!Just for future reference, the value 4 - where does that come from and what other values can be used?Sunil

Views

232

Likes

0

Replies

0
Re: Message box not appearing - function not functioning!
Avatar

SunsV

SunsV
- Adobe LiveCycle
complete change of tac here:I've replaced all the code and instead have used the action builder. Unfortunately for messages there are no options to put in if statements. Here's the code: form1.plan.plansub.plantable.planrow.Remove::click - (JavaScript, both)xfa.host.messageBox("You are about to remove an entry in the plan. Do you wish to proceed?", "Removing Entry!", 2, 2);this.resolveNode('plantable._planrow').removeInstance(this.parent.index);if (xfa.host.version < 😎 { xfa.form.recalculate(1)...

Views

234

Likes

0

Replies

0
Re: Message box not appearing - function not functioning!
Avatar

SunsV

SunsV
- Adobe LiveCycle
I think I've found something.I've taken the code (above) from an example of buttons that are used in acrobat that I found online - and can be implemented through acrobat pro. The code itself works fine. However, if I open the example file in live cycle and save it, the file no longer works in acrobat pro or reader (despite not editing it in any way). It doesn't work in so much as clicking on the example button that should open a warning box doesn't do anything. Running this file in Apro with the...

Views

234

Likes

0

Replies

0
Re: Message box not appearing - function not functioning!
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi jnicholas,I have run the file in acrobat pro and I get the message SyntaxError: invalid object initializer4:XFA:form1[0]:plan[0]:plansub[0]:plantable[0]:planrow[0]:Remove[0]:mouseUpI'm a real beginner here and although I can see the logic in scripting I'm not versed in it... not yet anyway. Any help would be gratefully received.form1.plan.plansub.plantable.planrow.Remove::mouseUp - (JavaScript, client)var cMsg = "Warning: Clicking YES with remove the current entry from your plan";cMsg += "\n\...

Views

231

Likes

0

Replies

0
Re: Message box not appearing - function not functioning!
Avatar

SunsV

SunsV
- Adobe LiveCycle
any help?

Views

229

Likes

0

Replies

0
Message box not appearing - function not functioning!
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi there,newbie here so be kind please!I have a table in my form with a remove button for each table row - this works fine, but it occurred to me that it would make more sense to bring up a message box warning the user that they are about to delete a table row. I've tried and tried, but whenever I test or save the file nothing now happens when I click the remove button - no warning window appears and the remove button does not remove the row.Here's my code: form1.plan.plansub.plantable.planrow.R...

Views

1.0K

Like

1

Replies

8
Re: show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
Okay guys, sorry for bumping this but I'm at a loss as what to do here - is it simply something that is too tricky or does anyone else have any ideas.Radzmar's code in point 6 works a treat until the page number increases/decreases and then the text field disappears throughout. I think what I'm looking for is a couple of checks that go if the page number increases run the code again AND also when sending to print check again.Not getting this at the moment and I've been at it for several days. Of...

Views

215

Likes

0

Replies

0
Re: show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
Okay, I can understand why this isn't working now, but I can't seem to change it.As a test I put the following code based on yours) in the prePrint and the change event of the very first master page instance of nonDis:this.presence = form1.Core1.core2flowed.nondisclosuretable.row1.disclosure.disclosureradio.rawValue !== "No" ? "visible" : "hidden";however, as even the very first page has content that hides when printed I still cannot see the nonDis field as visible despite the radio button being...

Views

218

Likes

0

Replies

0
Re: show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi Radzmar,Almost there... I think!It worked up to a point. As soon as I click/toggle yes/no the nonDis field does indeed appear on each and every page. However as soon as I send to print they all disappear.Doing a few tests it's because of several causes (I think). I have a number of tables which can grow when the user adds info (in fact most text fields have this ability). Also, I have text fields full of information for the user which I have scripted to disappear when sending to print (so the...

Views

221

Likes

0

Replies

0
Re: show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
righto,tried using the code with a completely blank form with just the radio button set, two master pages each with a text field called nonDis - and it didn't work.Should I be changing anything in the code you gave me to reflect the names of the elements or paths I am using - as currently I am literally copying and pasting the code into the exit event of the radio button set?Sunil

Views

220

Likes

0

Replies

0
Re: show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi Radzmar,Tried running it in acrobat reader and pro - no joy. Also placed it in the exit event but still no joy. I can just about uderstand what your code is trying to do - though it's beyond my expertise - just not sure why it's not making any changes. I've even got the various versions of nonDis occuring in different states when first opened (hidden, visible, invisible etc.) but nothing seems to be making a difference.The next thing I am going to try to do is use a completely blank form and ...

Views

219

Likes

0

Replies

0
Re: show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi Radzmar,Thank you for the code. Unfortunately I can't get it to work - I'm not seeing any difference to the state of the nonDis text fields.I am placing it in the click scripting event of the radio button set. I've also tried placing it in the calculate event of the same button. Should I be placing this somewhere else?Thanks,Sunil

Views

222

Likes

0

Replies

0
show/hide /print element on multiple master pages
Avatar

SunsV

SunsV
- Adobe LiveCycle
Hi again,I'm continuing to have a problem with something that should be simple but I can't figure out.I have a large form. On one of the pages there's a button that says 'is there a non disclosure order in place' - radio button with yes/no.If the user selects 'yes' I want the words 'non disclosure' to appear on all my pages.I've gone about this by creating a text field (non editable) on each master page. It's down at the bottom middle and doesn't interfer with any other element. I've called each...

Views

3.2K

Likes

0

Replies

10
Likes given to
Likes from