Answer the question
In order to leave comments, you need to log in
How to add data from input field in onclick?
There is a code that adds a button to the site with a form for a loan from Tinkoff.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<script src="https://forma.tinkoff.ru/static/onlineScript.js"></script>
</head>
<body>
<button
type="button"
class="TINKOFF_BTN_YELLOW"
onclick="tinkoff.createDemo({
shopId: 'SHOP_ID',
showcaseId: 'SHOWCASE_ID',
demoFlow: 'sms',
items: [
{name: 'iPhone 11', price: 100000, quantity: 1},
{name: 'Чехол', price: 500, quantity: 1}
],
promoCode: 'default',
sum: 100500
})"
></button>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question