download data webform

This commit is contained in:
Mangesh-Khairnar 2019-02-01 17:28:22 +05:30
parent 00809998e6
commit fe2b35eba3
4 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,7 @@
frappe.ready(function() {
// bind events here
setTimeout(() => {
form = frappe.web_form.field_group.fields_dict;
form.user.set_input(frappe.session.user);
}, 1000);
})

View file

@ -0,0 +1,52 @@
{
"accept_payment": 0,
"allow_comments": 0,
"allow_delete": 0,
"allow_edit": 0,
"allow_incomplete": 0,
"allow_multiple": 0,
"allow_print": 0,
"amount": 0.0,
"amount_based_on_field": 0,
"breadcrumbs": "",
"creation": "2019-01-24 16:19:26.886096",
"currency": "INR",
"doc_type": "Personal Data Download Request",
"docstatus": 0,
"doctype": "Web Form",
"idx": 0,
"is_standard": 1,
"login_required": 1,
"max_attachment_size": 0,
"modified": "2019-02-01 15:23:00.964346",
"modified_by": "Administrator",
"module": "Website",
"name": "request-data",
"owner": "Administrator",
"payment_button_label": "Buy Now",
"published": 1,
"route": "request-data",
"route_to_success_link": 1,
"show_attachments": 0,
"show_in_grid": 0,
"show_sidebar": 0,
"sidebar_items": [],
"success_message": "A download link with your data will be sent to the Email Id associated with your account.",
"success_url": "/desk",
"title": "Request Data",
"web_form_fields": [
{
"allow_read_on_all_link_options": 0,
"fieldname": "user",
"fieldtype": "Link",
"hidden": 0,
"label": "User",
"max_length": 0,
"max_value": 0,
"options": "User",
"read_only": 1,
"reqd": 1,
"show_in_filter": 0
}
]
}

View file

@ -0,0 +1,7 @@
from __future__ import unicode_literals
import frappe
def get_context(context):
# do your magic here
pass