Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Subform 3 not defined error on Submit

Avatar

Level 7

I have a form that has a submit email button that does some field checking on click.

When I click the Submit by email button, I get a "subform 3 not defined" error message.

What am I missing?

Thanks,

MDawn

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try the fully qualified name while referencing the control form a different page/ Subform.

In your case try the following in the email section..

     xfa.form.form1.page2.subForm3.approveDeny.rawValue

Also for incidentNumber use the below reference.

     xfa.form.form1.page2.subForm2.incidentNumber.rawValue,

Thanks

Srini

View solution in original post

6 Replies

Avatar

Level 10

May be because your code is referencing to a non existing subform..Check the form heirarchy.

Thanks

Srini

Avatar

Level 7

The Subform exists. Could it be because the code in the button click references subform 3 but it's not defined in the scripting? Would it help to look at the form?

Margaret Dawn

Supervisor - Documentation

W: 630-850-1065

Avatar

Correct answer by
Level 10

Try the fully qualified name while referencing the control form a different page/ Subform.

In your case try the following in the email section..

     xfa.form.form1.page2.subForm3.approveDeny.rawValue

Also for incidentNumber use the below reference.

     xfa.form.form1.page2.subForm2.incidentNumber.rawValue,

Thanks

Srini

Avatar

Level 7

Any luck figuring this one out?

Margaret Dawn

Supervisor - Documentation

W: 630-850-1065

Avatar

Level 10

Sent the file in an email with the changes I mentioned before..

Let me know if this helps..

Thanks

Srini

Avatar

Level 7

Your changes worked.

Thanks,

Margaret Dawn

Supervisor - Documentation

W: 630-850-1065