Bound Items not appearing in field

stephenf8734174

19-12-2016

Hi, I have a form with a drop down list containing products - when a product is selected a text field in the same table shows the product code. This works mostly - the only problem I've noticed is when particular products are chosen the code field remains blank. I have no idea why this is happening - would anybody have an idea or solution. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

_Bruce_Robertson

MVP

12-01-2017

Hi,

Sorry for the delay, took longer to recover from the holidays than usual.

There seems to be some special characters in your drop down list.

A with circumflex.png

Looks like a capital A with a circumflex, must say I am surprised this causes a problem, but if you remove them it all seems to work ok.

Regards

Bruce

Answers (7)

Answers (7)

stephenf8734174

22-12-2016

No problem Bruce - it's that time of year. No rush. I can see the problem in the code, but that wasn't affecting any of the other items, just the bottom two products in the 'enfit' section - I have no idea why these two are not returning their codes.

If you just take a look in your own time it would be appreciated. Merry Christmas.

_Bruce_Robertson

MVP

22-12-2016

Hi,

Sorry, haven't had much chance to look at your form and probably wont for a week or so now.  But this line in the exit event is throwing an exception.

xfa.resolveNode("order_consumables.derm_list.dermrow[" + this.parent.index + "]").derm_products.rawValue = this.rawValue;

I'm not sure what this is meant to do, as it seems to be trying to assign the current value to itself on exit.  But the reference is wrong, it should be ("order_consumables.derm_list.Table1.dermrow["

You should make sure that the "When exception is thrown" is set to Break in Acrobat under Edit ... Preferences ... JavaScript.

Regards

Bruce

stephenf8734174

20-12-2016

Hi Bruce,

There isn't any special characters (just numerals) and I can't see any duplicates. I've uploaded the form (link below). Just to help, one of the issues is in the 'Oral, EnFit Syringe' section (EnFit ADAPTOR, BOTTLE: MEDICATION, BOT DIA 25.5 - 27MM). Thanks for your help.

https://drive.google.com/file/d/0B5XDY7VuAMTnVEJPdmJaR0lsVTA/view?ths=true

_Bruce_Robertson

MVP

20-12-2016

Hi,

It hard to say without seeing the form.  I guess there's no special characters in the bound value, are there any duplicates.

Can you upload your form to a file share site, like Dropbox, Google Docs, etc and post a link here.

Regards

Bruce