Skip Navigation

[Resolved] Hiding the default parent element in a relationship form

This support ticket is created 2 years, 10 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by tims-9 2 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#2306971

Tell us what you are trying to do?
Hide the default parent element in a relationship form
i can hide the submit button with css display:none;

This does not appear to work when trying to hide the disabled select element in the relationship form.
I am using the form in a view loop

#2307149

Hi,

Thank you for contacting us and I'd be happy to assist.

To suggest some CSS code for this, I'll need to see the form itself. Can you please share the link to the page where this form can be seen?

regards,
Waqar

#2309371

hidden link

#2310033

Thank you for sharing the link.

To hide the pre-filled vehicle field, you can use the custom CSS code:


.js-wpv-view-layout form.cred_rel_form_class .container-fluid .row .col-md-2:first-of-type {
    display: none;
}

Note: To check which CSS code is applying to different page elements, you can use Google Chrome's inspect element tool, as explained in this guide:
hidden link

#2310677

My issue is resolved now. Thank you!