Hide some fields in SP Booking - Forum | JoomShaper
Staff replied Extensions

Hide some fields in SP Booking

Asked by Yiannis 1 year ago Last activity 1 year ago

Hello.
I am using the "transportation" of SP Booking.
Is there a way to hide some fields in Travel Information like dropoff location, dropoff date and Dropoff time without Javascript errors about missing fields.
Also, I would like the dropoff time to set automatically e.g. after 5 hours of pickup time.
Thank you in advance.

9 replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Could you please give me your site URL and also a screenshot of your issue?

-Regards.

Mehtaz Afsana Borsha Staff

Hi

Use this CSS in your custom.css file

input#dropoff_location{
  display: none;
}
input#dropoff_date{
  display: none; 
}
input#dropoff_time{
    display: none; 
}
Yiannis Asked this
1 year ago · edited

Hello.
Unfortunately, this code doesn't work.
I see the message:
Dropoff location is required, Dropoff time is required
although these fields doesn't display.
Also, dropoff_date field doesn't hide.

screenshot

Mehtaz Afsana Borsha Staff

Could you please give me your super admin access? So that I can check.

Yiannis Asked this
1 year ago · edited

Hello.
You can check.
Your code has been entered in the template's custom css field.

Mehtaz Afsana Borsha Staff

Could you please check now?

Yiannis Asked this
1 year ago · edited

Hello.
I appreciate your help, but the form doesn't work when I click the "continue" button.

Also, I don't want to hide pickup date and warning messages about required fields.

Mehtaz Afsana Borsha Staff

You can then need some customization which is beyond our support policy, I am sorry. You have to go that form file and change the core code, like you have to comment those lines then it will not appear.

Yiannis Asked this
1 year ago · edited

Hello.
I suggest that the SP Booking field "transport" needs the customization like "package".

Mehtaz Afsana Borsha Staff

Thanks for your suggestions. I will note it down. You can now close this post by accepting the answer.

Log in to reply.