Написать JS
Есть сайт на Тильде. Нужно настроить его связь с BPMOnline, чтобы передавалитсь данные форм.
Для этого нужно вставить код на сайт:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://webtracking-v01.bpmonline.com/JS/track-cookies.js"></script>
<script src="https://webtracking-v01.bpmonline.com/JS/create-object.js"></script>
<script>
/**
* Replace the "css-selector" placeholders in the code below with the element selectors on your landing page.
* You can use #id or any other CSS selector that will define the input field explicitly.
* Example: "Email": "#MyEmailField".
* If you don't have a field from the list below placed on your landing, leave the placeholder or remove the line.
*/
var config = {
fields: {
"Name": "css-selector", // Name of a visitor, submitting the page
"Email": "css-selector", // Visitor's email
"Zip": "css-selector", // Visitor's ZIP code
"MobilePhone": "css-selector", // Visitor's phone number
"Company": "css-selector", // Name of a company (for business landing pages)
"Industry": "css-selector", // Company industry (for business landing pages)
"FullJobTitle": "css-selector", // Visitor's job title (for business landing pages)
"UseEmail": "css-selector", // Logical value: 'true' equals to visitor's opt-in to receive emails
"City": "css-selector", // City
"Country": "css-selector", // Country
"Commentary": "css-selector" // Notes
},
landingId: "9f3b1f3d-5726-4895-9ef5-8e4c82e68ea8",
serviceUrl: "https://*******************.bpmonline.com/0/ServiceModel/GeneratedObjectWebFormService.svc/SaveWebFormObjectData",
redirectUrl: ""
};
/**
* The function below creates a object from the submitted data.
* Bind this function call to the "onSubmit" event of the form or any other elements events.
* Example: <form class="mainForm" name="landingForm" onSubmit="createObject(); return false">
*/
function createObject() {
landing.createObjectFromLanding(config)
}
/**
* The function below inits landing page using URL parameters.
*/
function initLanding() {
landing.initLanding(config)
}
jQuery(document).ready(initLanding)
</script>
и добавить...
Place the edited code on your landing page. Insert the following code into the <form> tag of your form.
onSubmit="createObject(); return false"
Вторую часть добавить нельзя, так как нет доступа к коду.
Первую можно. Но вместо "css селекторов" использовать - вот это name="name" name="email" name="phone"
<input type="text" name="name" class="t-input js-tilda-rule " value="" placeholder="Иванов Александр" data-tilda-req="1" data-tilda-rule="name" style="color:#000000; border:1px solid #000000; ">
Ну... Как то так. Я так понимаю, что подобное решение описано здесь:
https://community.terrasoft.ua/articles/integracia-s-korobocnym-saitom-bez-dostupa-k-kodu-veb-formy
Ну и еще информация о внедрении:
https://academy.terrasoft.ru/documents/marketing/7-7/razdel-lendingi
-
76 2 0 Здравствуйте Виталий, давайте попробуем реализовать.
Опыт в кастомизации Тильды имеется.
Задумки кое-какие касательно вашей задачи есть.
Срок и стоимость указал примерно, точнее скажу после того как увижу сайт.
Пришлите в ЛС адрес сайта, плз.
Current freelance projects in the category Javascript and Typescript
Online clothing storeNeed a developer for an online clothing store Looking for an experienced developer to create a full-fledged online clothing store with a drop model of sales. What needs to be done: 6 pages: home, product, cart, checkout, account, admin panel Login via Google account Cart and… HTML & CSS, Javascript and Typescript ∙ 10 hours 4 minutes back ∙ 63 proposals |
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 2 days 21 hours back ∙ 28 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 4 days 13 hours back ∙ 96 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 5 days 7 hours back ∙ 27 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 7 days 9 hours back ∙ 55 proposals |