Skip Navigation

[Resolved] Relationship form on front side creating js error

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1073416

Hi There,

I am displaying a relationship form in a modal on the front end and am getting an error in the console:

Uncaught TypeError: Cannot read property 'validate' of undefined

The search field in the relationship form does not allow any input.

The console identifies line 322 in main.js as the problem:

var is_valid = $(this).parent($form_class).parsley().validate();

When I display the same relationship form on the page instead of in a modal, it all works but I still get the same error when I click in the search field.

Is this a known error with front end display of relationship forms and is there anything I can do to make the search field work in a modal?

Thanks -
Mark

#1074377

Hi, I'm not aware of a known issue with this code. Can you test with a default theme like Twenty Seventeen active? Insert the Form in a custom Page using a basic Content Template.