Autofill form fields in standard WIX Bookings form

Hello everybody,

i am currently setting up the booking process on my website. I was thinking about auto filling the standard form from the WIX Bookings process, meaning that for example the name, mail address and phone number are inserted into the form fields based on the current member that is logged in.

I know that Wix autofills the form after the first booking but i was thinking about auto filling the form before the first use and then disable it so it cant be changed during the booking process(“grey it out”). My first approach would be to use the WIX Members API in the Bookings Checkout page:

$w . onReady ( function () {

currentMember . getMember () 
    . then (( member ) => { 
        **const**  id  =  member . _id ; 
        **const**  fullName  =  ` ${ member . contactDetails . firstName } ${ member . contactDetails . lastName }`; 
        **const**  mailAddress  =  ` ${ member . contactDetails . emails }`; 
        **const**  phoneNumber  =  ` ${ member . contactDetails . phones }`; 
        **return**  member ; 

        **let**  formFieldValues = ; 
    }) 
    . **catch** (( error ) => { 
        console . error ( error ); 
    }); 

});

My question would be if it is even possible to access the form fields from the WIX Bookings form or do i need to create my own form?

Looking forward to your replies.

Greetings, Daud

Hi again, this is the section (Booking Form) i am trying to prefill:

i appreciate any hint and help.

Greetings,

Dawda