Hi all,
i need to insert record in doc by website visitor (public custom html)
i add html form but the click event handle not working properly when add it inside frappe.ready block
working code
{% block script %}
<script>
// frappe.ready(function() {
$('.btn-send').on('click', function() {
alert("{{ _("Hello.") }}");
return false;
});
// });
</script>
{% endblock %}
not working coe
{% block script %}
<script>
frappe.ready(function() {
$('.btn-send').on('click', function() {
frappe.msgprint("{{ _("Hello.") }}");
return false;
});
});
</script>
{% endblock %}
Best regards ,
thanks in advance ,