Add to the form the attribute onsubmit="submitHandler()" - (drupal 8)
and to the tag add the attribute onsubmit, for example as follows:
You may need to install an additional module that will allow you to add this attribute. Ready to pay for the solution. The final result. From the site’s demo version, transfer the file or add a script to work on the site’s operating version.
from those. Supports
Start the script for an event not necessarily indicate in the html code of the form, just set the launch function for the event submit for the required forms: https://www.w3schools.com/jsref/event_onsubmit.asp
In the case of your wild there is a documentation and example of implementation in open sources:
HTTPS://progi.pro/drupal-8-vizov-funkcii-javascript-posle-sobitiya-ajax-4698640
https://www.drupal.org/ru/docs/user_guide/ru/index.html
<скрипт>
function submitHandler() {
mgo.postForm({
name: document.getElementById('username').value,
email: document.getElementById('email').value,
number: document.getElementById('phone').value
})
}
</скрипт>
чтобы он заработал, к моим двум формам, с которых идут заявки с сайта надо добавить (согласно тех.поддержке)
в тег <form> добавить атрибут onsubmit, например так:
<form onsubmit="submitHandler()">
СМС drupal 8
Client's review of cooperation with Dmitro Litvinchuk
Add to the form the attribute onsubmit="submitHandler()" - (drupal 8)It would seem a trivial task, only this developer could solve it. I recommend !
![]()
Freelancer's review of cooperation with client
Add to the form the attribute onsubmit="submitHandler()" - (drupal 8)A wonderful customer. Clear setting of task. pleasant in communication.
I recommend cooperation!
-
439 5 0 Hello!
My name is Dmitry.
I have been developing a site on Drupal more than 9 years starting with version 6. Now I am working with versions of Drupal 6, 7 and 8.
Have a look at my portfolio, it contains some of my sites, I've worked on recently. http://codewebsolution.com.ua/portfolio
Thank you in advance for your time and consideration.
I look forward to working with you soon.
-
79 1 0 Good day .
If the problem is only in the ethom then everything can be solved using JS(jQuery) or write a cast preprocess for Drupal depending on which forms you use(cast or counter).
Ready to discuss details. I’m specializing in Drupal 8.
-
6455 267 1 3 Good day, ready to take your task.
Write to Ls and discuss everything.
-
242 5 0 Ready to discuss details, I can write the form processor on js (jQuery), I can on php, but I need more info for better performance.
I am ready to talk to L.S.
Current freelance projects in the category Javascript and Typescript
Fix the CSS/DOM layout of cards in the Chrome extension for localizing D&D BeyondThere is a Chrome extension Manifest V3 that localizes the D&D Beyond website into Ukrainian. The project is written in TypeScript + WXT. The extension works through a content script: it finds English text on D&D Beyond pages and replaces it with the Ukrainian translation. The… HTML & CSS, Javascript and Typescript ∙ 1 day 12 hours back ∙ 38 proposals |
Development of the AM Mobility platform (car service, parking, insurance, car rental)
5770 USD
We are looking for a team or an experienced Full Stack developer to create the MVP of the AM Mobility platform. AM Mobility is a unified digital ecosystem for motorists, combining in one application and web platform: parking; car service; tire fitting; car wash; car rental;… Javascript and Typescript, Web Programming ∙ 1 day 22 hours back ∙ 99 proposals |
Gsap animations
22 USD
Good day. Corrections need to be made in the current project. A specialist is needed who works well with gsap/lenis. Animation of cards needs to be done. Detailed specifications here:… Javascript and Typescript, Web Programming ∙ 2 days 3 hours back ∙ 21 proposals |
Commercial on-premise video communication platform "ViM"It is required to develop an on-premise video conferencing system with a basic calculation for 100 simultaneous connections (10 isolated rooms of 10 people each). The platform should have a built-in architecture for future horizontal scaling up to 1000 users by adding new media… Javascript and Typescript, Web Programming ∙ 2 days 23 hours back ∙ 32 proposals |
I am looking for a mentor with Claude Code to launch a web project from scratch.Brief about the task: I am a beginner with no programming experience. I have a ready specification for website development (42 pages, Next.js, PostgreSQL). I want to implement it myself using Claude Code - I need a specialist who will set up the environment and teach me how to… Javascript and Typescript, Tuition ∙ 4 days 2 hours back ∙ 18 proposals |