Populate / Autofill
-
hello,
anyone knows how to populate/autofill the forms on checkout fields?
I just found this information but is not clear..
-
Hello,
Anyone can help me with it?Hi @joaocastro88,
Thank you for reaching out to us. I hope you’re doing well.
Do you refer to the “Attendee registration fields”?. Attendee registration fields are a feature of our premium Event Tickets Plus plugin.
Please ask for help with this over in the premium support channel. We are not allowed to help with the paid plugins here in the .org forum.
If you already have opened a ticket there, please share the ticket number with me.
Thanks for understanding.
Best,
Juan.HEllo,
Yes i’ve sent the ticket.
(#304419)
Yes, i need to autofill the inputs when i fill the first atendee person, able to fill the next inputs with same informatio.
Thankshello.
Any news?Hi,
Sorry for the wait! We’ve been experiencing a high volume of support requests.
We’ve replied on our premium support platform as the ticket is related to a premium feature.
We’ll continue the conversation there. Thank you for your patience.
Best,
Juan.I made a js to do that, but the plugin is blocking it:
document.onreadystatechange = function () { if (document.readyState == "complete") { console.log('aqui1'); let elements = document.getElementsByClassName("tribe-tickets__form-field-input-wrapper"); console.log('aqui 2', elements); let elementsCheckbox = document.getElementsByClassName("tribe-common-form-control-radio"); console.log('aqui 3', elementsCheckbox); if(elementsCheckbox.length > 1){ console.log(elementsCheckbox); let first = elementsCheckbox[0].children[0].children[0].id; let firstArray = first.split('_'); let firstLast = firstArray[firstArray.length-1]; console.log('click2'); let second = elementsCheckbox[1].children[0].children[0].id; let secondArray = second.split('_'); let secondLast = secondArray[secondArray.length-1]; console.log(first); document.getElementById(first).onclick = function(){ console.log('click3'); for(let i=1;i<elementsCheckbox.length;i++){ if(elementsCheckbox[i].children[0].children[0].id.includes('are-you-a-vegetarian_1_'+firstLast)){ console.log('exists'); console.log(document.getElementById(elementsCheckbox[i].children[0].children[0].id).val); if(document.getElementById(elementsCheckbox[0].children[0].children[0].id).value){ document.getElementById(elementsCheckbox[i].children[0].children[0].id).checked = true; } } } }; document.getElementById(second).onclick = function(){ for(let i=1;i<elementsCheckbox.length;i++){ if(elementsCheckbox[i].children[0].children[0].id.includes('are-you-a-vegetarian_1_'+secondLast)){ console.log('exists'); console.log(document.getElementById(elementsCheckbox[i].children[0].children[0].id).value); if(document.getElementById(elementsCheckbox[0].children[0].children[0].id).value){ document.getElementById(elementsCheckbox[i].children[0].children[0].id).checked = true; } } } }; } if(elements.length > 1){ let first = elements[0].children[0].id; let second = elements[1].children[0].id; let third = elements[2]; let firstValue = elements[0].children[0].value; console.log(first); document.getElementById(first).onkeyup = function(){ for(let i=1;i<elements.length;i++){ if(elements[i].children[0].id.includes('given-name_1')){ document.getElementById(elements[i].children[0].id).value = document.getElementById(elements[0].children[0].id).value; } } }; document.getElementById(second).onkeyup = function(){ console.log('click3'); for(let i=1;i<elements.length;i++){ if(elements[i].children[0].id.includes('surname_1')){ document.getElementById(elements[i].children[0].id).value = document.getElementById(elements[1].children[0].id).value; } } }; } } }
But dont work in any place, and on jsfidle works well.
Can help with this?
ThanksHi,
Thanks for the follow-up. I’ve replied over our premium support platform, I hope you got the notification there.
It appears that you are reaching out for help with a customization. Unfortunately, our plugin support covers help with setting up the latest version of the product and directions on how to use the latest version of the product as advertised. Our support service does not cover help with customizations. Although it is still unclear to me if you’re experiencing this in the Attendee registration modal, the page, or the RSVP.
If you need customization work done, I highly recommend our friends at Codeable to help out with implementing your desired look and feel for your site: https://theeventscalendar.com/knowledgebase/k/custom-development/
Best,
Juan.
- The topic ‘Populate / Autofill’ is closed to new replies.