since ‎23-04-2008
‎25-10-2020
_Bruce_Robertson
MVP
Re: Change Textfield (with default text) color when user... _Bruce_Robertson - Adobe LiveCycle
The runtimeHighLight property is one of the users application preferences. It is the same as if you went into Edit ... Preferences ... Forms and change the highlight color options there. Maybe you have one of the other settings there getting in the way. Can you try a different computer and see if the same things happens?
107
Views
0
Likes
1
Answers
Re: Change Textfield (with default text) color when user... _Bruce_Robertson - Adobe LiveCycle
Hi, your code to turn off highlighting should work, as long as the "F" of false is in lowercase, if that just some sort of auto correct in this forum? And, I would put it in the docReady event. There is more about the field highlighting, with a sample, in Niall's blog, https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle/ct-p/adobe-livecycle-community Bruce
116
Views
0
Likes
1
Answers
Re: Incrementing the counter for every page _Bruce_Robertson - Adobe LiveCycle
Hi Ashok1, I'm not sure I understand when does the form know to go from 2/2 to 1/4 or 4/4 to 1/3. Are there multiple master pages? Maybe some images of your form hierarchy would help. Regards Bruce
111
Views
0
Likes
0
Answers
Re: Change Textfield (with default text) color when user... _Bruce_Robertson - Adobe LiveCycle
Hi, I guess there is something my code does not allow for in your form, are the fields in a repeating block, or are the field names duplicated? My test form for the code is;https://sites.google.com/site/livecycledesignercookbooks/home/ab35711410.pdf?attredirects=0&d=1 Can you share your form, just upload to whatever site (google docs, dropbox, etc) and post a link in this thread. Bruce
130
Views
0
Likes
1
Answers
Re: Change Textfield (with default text) color when user... _Bruce_Robertson - Adobe LiveCycle
Hi, Try this code in the layout.ready event form1.#subform[0].TextField1::ready:layout - (JavaScript, client) var som = this.somExpression.replace(/\[[0-9]*\]$/, ""). replace(/\[[0-9]*\]\./g, "."). replace(/xfa\.form/, "$template"). replace(/#subform\./, ""); var f = xfa.resolveNode(som); if (this.isNull || f.value.text.value == this.rawValue) { // is field empty or the default value this.ui.oneOfChild.border.fill.color.value = "255,255,153"; } else { if (this.ui.oneOfChild.border.isPropertySpec...
191
Views
0
Likes
3
Answers
Re: PDF form crashes LiveCycle when trying to reopen _Bruce_Robertson - Adobe LiveCycle
Hi, You can still add a link to your form in the thread. I can try opening it on my computer. Designer will create a copy of the form every time you preview it, this copy will be in your %temp% directory (just type %temp% into explorer) and will have a random name like _304g3770t141109nh.pdf. But this directory is usually under AppData, so you may have deleted it already ... but in case you took a copy. Regards Bruce
677
Views
0
Likes
2
Answers
Re: Live Cycle Designer edit caption _Bruce_Robertson - Adobe LiveCycle
Turns out I don't have a copy of Designer 11, but I have tried Designer 10 and AEM Forms 6 and can't see any problem. To upload your form you can use any file share web site, like google docs, dropbox, or whatever and post a link to it here. Bruce
675
Views
1
Like
1
Answers
Re: Live Cycle Designer edit caption _Bruce_Robertson - Adobe LiveCycle
Hi, That does sounds unusual, is it happening to all forms, even new ones? I am happy to try it on my system to see if it is the form or not. Are you able to share your form, you can upload it to any file share and post a link to it here. RegardsBruce
806
Views
0
Likes
0
Answers
Re: Calculating time _Bruce_Robertson - Adobe LiveCycle
To get the total number of hours between your two field you can use, this FormCalc in the calculate event of your hours field. (Time2Num(TimeField2.formattedValue, "HH:MM") - Time2Num(TimeField1.formattedValue, "HH:MM")) / (60 * 60 * 1000) If you want 10 minute increments you might be better off with a couple of dropdowns to choose hours/minutes or maybe something like this timepicker with up/down 'spinner' arrows.
3217
Views
0
Likes
0
Answers
Re: How to bind the %VAT from a dropdown list _Bruce_Robertson - Adobe LiveCycle
Hi, I think we will need to see the form hierarchy to understand the issue. Can you add a screen shot, or maybe a link to the actual form? RegardsBruce
2477
Views
0
Likes
0
Answers
Re: Horizontally Expandable table rows _Bruce_Robertson - Adobe LiveCycle
Hi,Maybe try this method of changing normal subforms into a table, seems to allow for columns to be autofit https://blogs.adobe.com/formfeed/2011/10/tables-with-variable-numbers-of-columns.html Bruce
2576
Views
0
Likes
0
Answers
Re: Make the textfield mandatory _Bruce_Robertson - Adobe LiveCycle
Hi,If you mean that your text fields have a value because you have assigned them "(000) 000-0000" or the like, then you may want to use a null display pattern.So a display pattern of:null{'(000) 000-0000'}will have the same effect, but the mandatory test will still work.RegardsBruce
3606
Views
1
Like
1
Answers
Re: Color Failed Field - Form Properties _Bruce_Robertson - Adobe LiveCycle
Hi, The exclGroup is the container for the radio buttons, so this code will put the border around all the radio buttons, as opposed to each one individually. So, this is generally what you want. What effect are you wanting from the validation colouring? RegardsBruce
2626
Views
0
Likes
0
Answers
Re: data on that column comes out misaligned and scattered. _Bruce_Robertson - Adobe LiveCycle
Hi, maybe a screenshot would give us a better idea of what is going ob RegardsBruce
2450
Views
0
Likes
0
Answers
Re: Skip Form data when field matches specific value _Bruce_Robertson - Adobe LiveCycle
Hi, You can use an expression in the binding, so try $.PurchaseOrder.Item.[ActionCode <> "03"] Note the full stop should be before the opening square bracket. Regards Bruce
4067
Views
1
Like
0
Answers
Re: Skip Form data when field matches specific value _Bruce_Robertson - Adobe LiveCycle
Hi, You can use an expression in the binding, so try $.PurchaseOrder.Item.[ActionCode <> "03"] Note the full stop should be before the opening square bracket. Regards Bruce
4086
Views
0
Likes
0
Comments
Re: How to dynamically do the data binding (two-way binding as it happens when we do data binding through binding tab) through javascript? _Bruce_Robertson - Adobe LiveCycle
I don't think you can script against the binding properties. If you can explain what you are trying to achieve, at a higher level, then we might be able to offer some alternatives. If you are wanting to change the binding from one element in your xml to another you might be able to use predicts.The remerge method takes the template DOM and data DOM and rebuilds the form DOM, so even if your scripting worked it would be reset by the remerge.RegardsBruce
2666
Views
0
Likes
0
Answers
Re: Make a field visible dependent on another fields length - Issue change event _Bruce_Robertson - Adobe LiveCycle
Hi Deborah,You are getting the exception because this.rawValue is null and the null object does not have a length property.In the change event this.rawValue has not been updated yet.You probably want to use xfa.event.newText instead.RegardsBruce
2465
Views
0
Likes
0
Answers
Re: dynamic image _Bruce_Robertson - Adobe LiveCycle
Hi Johan,I'm not sure what you mean, do you want to have lots of images in the form and select one to display? If so, then you can do that with JavaScript, something likeImageField1.rawValue = Image1.value.image.valueSo, you would end up with 2000 Image fieldsBruce
2558
Views
0
Likes
0
Answers
Re: saveXML and loadXML work in calculation event? _Bruce_Robertson - Adobe LiveCycle
Hi,We might need to know more about what your form is doing, but you could try moving the calculate event code up the form hierarchy, so maybe on Row2RegardsBruce
2627
Views
0
Likes
0
Answers
Re: saveXML and loadXML work in calculation event? _Bruce_Robertson - Adobe LiveCycle
Hi,I would suspect that doing the Row2.Cell1.value.exData.loadXML() will rebuild the Form DOM for that field. This would include the calculate event, so having the effect of interrupting the execution.Bruce
2607
Views
0
Likes
0
Answers
Re: dynamic image _Bruce_Robertson - Adobe LiveCycle
Hi Johan,You will have to include the jpg image data in your xml as a base64 encoded string, and then bind an image field to itYou can't pick up a JPG file externally.RegardsBruce
2554
Views
0
Likes
0
Answers
Re: Expandable text overriding the fotter and a blank page is inserted _Bruce_Robertson - Adobe LiveCycle
Hi,This is usually a "allow page break within content" option missing somewhere in the form hierarchy.Can you share your form, or maybe just a screen shot of the hierarchyRegardsBruce
1983
Views
0
Likes
0
Answers
Re: Hiding specific row in a table _Bruce_Robertson - Adobe LiveCycle
Hi,If you table has a row that repeats you can use something like this code;Table1.resolveNode("Row1[5]").presence = "hidden";Which will hide the 6th row.RegardsBruce
2621
Views
0
Likes
0
Answers
Re: Get Data from specific Page _Bruce_Robertson - Adobe LiveCycle
Hi Dennis,You will have to use the layout methods to work out which page you are on and to work out which page the appropriate PERSNR field is on.You will also have to do this in the ready:layout event, so there could be a performance hit.Anyway, this JavaScript code in the ready:layout event of the PERSNR_NEXTPAGE should do what you are after;var persnr;all:for (var i = xfa.layout.absPage(this); i >= 0; i--) { // work backwards from the current page var fields = xfa.layout.pageContent(i, "field...
2391
Views
0
Likes
0
Answers
Re: How to use Compound tags option (it is among the Paragraph properties) in LiveCycle Designer ES2 (9.8.0*)? _Bruce_Robertson - Adobe LiveCycle
Hi,There is more that can be done using the rich text options, than can be done with the Designer's bulleted lists.I did a sample some time ago that might help,Adobe LiveCycle Designer Cookbooks by BR001: Custom Bulleted and Numbered Lists RegardsBruce
2283
Views
0
Likes
0
Answers
Re: Resting Radio Buttons when Radio Button Field is hidden _Bruce_Robertson - Adobe LiveCycle
Hi,This depends on how you have done your show/hide code. If you were to have a subform that contained a radio button list called YesNo, one called ABC and a subform call aContent, then in the subform calculate event you could have code like;if (YesNo.rawValue == 1) { ABC.presence = "visible";} else { ABC.presence = "hidden"; xfa.host.resetData(ABC.somExpression);}if (ABC.rawValue == 1) { aContent.presence = "visible";} else { aContent.presence = "hidden";}The thing to note here is that when the...
2413
Views
1
Like
0
Answers
Re: Adobe Summit 2019 | L784 - Building for the Modern Web with the Adobe Experience Manager SPA Editor _Bruce_Robertson - Adobe Experience Manager
Hi,Try https://expleague.azureedge.net/labs/L784/resources.zip
16080
Views
1
Like
0
Replies
Re: Postal Code Validations _Bruce_Robertson - Adobe LiveCycle
Maybe look at validation patterns? Which country (or countries) are you targeting?
2507
Views
0
Likes
0
Answers
Re: How to bind data to ListBox, so that data can be exported and imported? _Bruce_Robertson - Adobe LiveCycle
That button just popped up a dialog that had even less clues as to what was going on.
2290
Views
0
Likes
0
Answers
Likes given to