Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges


Invalid property get operation; subform doesn't have property 'rawValue'

Level 7
Level 7


I have a form where on the Submit button I'm putting JavaScript that checks each field and radio button set to ensure the user has filled something in. I have used this script before successfully, but this time it is not working and for the life of me I can't see what wrong. Also, I've not encountered this particular error message before. Here is the text I am seeing on clicking the Submit button:

Acrobat JavaScript Debugger Functions Version 11.0

Acrobat EScript Built-in Functions Version 11.0

Acrobat SOAP 11.0

Exception in line 5 of function top_level, script XFA:form1[0]:page2[0]:buttons[0]:Button1[0]:click

GeneralError: Operation failed.


Invalid property get operation; subform doesn't have property 'rawValue'

I'm glad to share my script if that's helpful as well.

Thanks in advance for your help,


1 Accepted Solution
Correct answer by
Level 10
Level 10

The exception states that the XFA object with the SOM expression page1.firstPage.positioned.header.posSub.storeNbr is not a field but a subform.

View solution in original post

8 Replies
Level 10
Level 10

So far I can see that you have a button "Button1" with a click event that tries to get the rawValue of a subform in line 5 of the script.

But you better post the entire script you're using. 😉

Level 7
Level 7

Here's the script:

var v1 = page1.firstPage.positioned.firstLine.reqType.rawValue;

var v2 = page1.firstPage.positioned.firstLine.orderQuote.rawValue;

var v3 = page1.firstPage.positioned.description.rawValue;

var v4 = page1.firstPage.positioned.rentExempt.rawValue;

var v5 = page1.firstPage.positioned.header.posSub.storeNbr.rawValue;

var v6 = page1.firstPage.positioned.header.posSub.storeName.rawValue;

var v7 = page1.firstPage.positioned.header.posSub.RadioButtonList.rawValue;

var v8 = page1.firstPage.positioned.header.posSub.storeContact.rawValue;

var v9 =;

var v10 = page1.firstPage.positioned.header.posSub.contactsPhone.rawValue;

var v11 = page1.firstPage.positioned.header.posSub.custName.rawValue;

var v12 = page1.firstPage.positioned.header.posSub.custPhone.rawValue;

var v13 = page1.firstPage.positioned.header.posSub.custEmail.rawValue;

var v14 = page1.firstPage.positioned.dateNeeded.RadioButtonList.rawValue;

var v15 = page1.firstPage.positioned.dateNeeded.addlInfo.DateTimeField2.rawValue;

var v16 = page1.firstPage.positioned.dateNeeded.addlInfo.rushFees.rawValue;

var v17 = page1.firstPage.positioned.dateNeeded.rushProcessingFees.rushFeePrices.rawValue;

var v18 = page1.firstPage.positioned.dateNeeded.rushProcessingFees.RadioButtonList.rawValue;

var v19 = page1.firstPage.positioned.chairsArtInfo.RadioButtonList.rawValue;

var v20 = page2.personalization.header.RadioButtonList.rawValue;

var v21 = page2.shipping.shipTo.RadioButtonList.rawValue;

var v22 = page2.shipping.customerAddress.rawValue;

var v23 = page2.shipping.rushOrders.RadioButtonList.rawValue;


if ((v1 == "") || (v1 == null))

{ "Please select the type of request" );"page1.firstPage.positioned.firstLine.reqType");


} else {

if ((v2 == "") || (v2 == null))

{ "Please indicate whether this is an order or quote" ); ("page1.firstPage.positioned.firstLine.orderQuote");


} else {

  if (((v1 == "3")) && ((v3 == "" || v3 == null)))

{ "Please enter a description" );"page1.firstPage.positioned.description");


} else {

  if (((v1 == "2")) && ((v4 == "" || v4 == null)))

{ "Please indicate if the order is rent exempt or royalty exempt" );"page1.firstPage.positioned.rentExempt");


} else {

  if ((v5 == "" || v5 == null))

  { "Please enter the store number" );"page1.firstPage.positioned.header.posSub.storeNbr");


} else {

  if ((v6 == "" || v6 == null))

  { "Please enter the school's name" ); ("page1.firstPage.positioned.header.posSub.storeName");



} else {

if ((v7 == "") || (v7 == null))

{ "Please enter the store's country" );"page1.firstPage.positioned.header.posSub.RadioButtonList");


} else {

if ((v8 == "") || (v8 == null))

{ "Please enter the name of the store's contact person" );"page1.firstPage.positioned.header.posSub.storeContact");


} else {

  if ((v9 == "" || v9 == null))

  { "Please enter the store contact's email address" );"");


} else {

if ((v10 == "") || (v10 == null))

{ "Please enter the customer's telephone number" );"page1.firstPage.positioned.header.posSub.contactsPhone");


} else {

if ((v11 == "") || (v11 == null))

{ "Please enter the customer's name" );"page1.firstPage.positioned.header.posSub.custName");


} else {

  if ((v12 == "" || v12 == null))

  { "Please enter the customer's telephone number" );"page1.firstPage.positioned.header.posSub.custPhone");


} else {

if ((v13 == "") || (v13 == null))

{ "Please the customer's email address" );"page1.firstPage.positioned.header.posSub.custEmail");



} else {

if ((v15 == "") || (v15 == null))

{ "Please whether the order is needed by a specific date" );"page1.firstPage.positioned.dateNeeded.RadioButtonList");


} else {

  if ((v16 == "" || v16 == null))

  { "Please enter date the order is needed" );"page1.firstPage.positioned.dateNeeded.addlInfo.DateTimeField2");


} else {

  if ((v17 == "" || v17 == null))

  { "Please indicate if rush fees are applicable" );"page1.firstPage.positioned.dateNeeded.addlInfo.rushFees");


} else {

  if ((v18 == "" || v18 == null))

  { "Please select the rush processing fee that is wanted" );"page1.firstPage.positioned.dateNeeded.rushProcessingFees.RadioButtonList");



} else {

  if ((v19 == "" || v1 == null))

  { "Please identify the format of the art for the chair" );"page1.firstPage.positioned.chairsArtInfo.RadioButtonList");



} else {

  if ((v20 == "" || v20 == null))

  { "Please identify whether personalization is needed for this order" );"page2.personalization.header.RadioButtonList");



} else {

  if ((v21 == "" || v21 == null))

  { "Please identify where the order will be shipped" );"page2.shipping.shipTo.RadioButtonList");



} else {

  if ((v22 == "" || v22 == null))

  { "Please provide the customer's address" );"page2.shipping.customerAddress");


} else {

  if ((v23 == "" || v23 == null))

  { "Please select the rush fee that the customer wants" );"page2.shipping.rushOrders.RadioButtonList");


} else {





Correct answer by
Level 10
Level 10

The exception states that the XFA object with the SOM expression page1.firstPage.positioned.header.posSub.storeNbr is not a field but a subform.

View solution in original post

Level 10
Level 10

Hi there,

by looking at your code it is a pain to try to find the error, even though it can be obvious sometimes...

it can be a typo or as radzmar says the object is not a field in this situation..

a good way to evade these kind of errors on validation, especially if you write your own validation is to have a validation script that can be adapted to your form when you change your form..

if you will need to change your form, well you will need to change your code... if you are interested in having a validation script easy to manipulate, have a look at my thread

A PDF form is available to see how it works

Validation / Reset Functions, easy to manipulate and to change Forms!!!!

Level 7
Level 7

Hi, radzmar,

Thanks for your feedback. As far as I can tell, the object is a field within a subform. Is there something specifically I should look for? I also deleted the field and re-entered it.

Would you expect if I "remmed" out line 5 and corresponding lines that the error would go away? I tried that and it didn't. I'm not sure exactly what to look for. Would posting my form help?



Level 10
Level 10

Hi there again,

if you want to find exactly what is the error in your code use a try catch exception

using the try catch statement, you will more likely be able to find exactly where is the error...

as it says line 5 it can be any other line above 5 because it depends on which line your code is starting on..

If your event starts on line 4 and the error is on line 5, then you should make the math and figure out that the error is on line 9 and not on 5...

If you still don't know what the error is, post the exception caught with the try statement.

Hope this help!

Level 7
Level 7

Thank you both for your help-understanding the meaning of the error message and how to troubleshoot. It wasn't specifically line 5, but a few lines down. I have it working now!

Thanks again for all your help.