froldan
October 29, 2017, 8:19pm
#1
Hello Community.
I need to create a webpage which will receive a few GET params that I need to capture in a python module.
I tried with a HTML page under www/mypage.html and www/mypage.py (following this link https://frappe.io/docs/user/en/guides/portal-development/context ) but in the context, I can’t get the GET params.
Also, I tried with an API method but if I go in this way I need to redirect the user to another page after the calculations and it isn’t possible with this method.
Any ideas, thanks!
Were you able to figure something out I am running into the same issue.
froldan
October 29, 2018, 11:09am
#3
Hello, you can try with
frappe.form_dict.foo
frappe.form_dict.bar
For example to capture the data of a form
<form method="get">
<div class="form-group">
<input type="text" name="foo" class="form-control input-sm">
</div>
<div class="form-group">
<input type="text" name="bar" class="form-control input-sm">
</div>
<button type="submit" class="btn btn-primary pull-right">Submit</button>
</form>
1 Like