-
Notifications
You must be signed in to change notification settings - Fork 96
docs: Docs for Custom Webform Context hook #173
docs: Docs for Custom Webform Context hook #173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update documentation according to recent changes in the feature PR.
@@ -433,6 +433,23 @@ The above configuration will render `/not_found` when a 404 is occurred. It is | |||
upto you to implement the template `www/not_found.html` and controller | |||
`www/not_found.py`. | |||
|
|||
## Custom Web Form Context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Custom Web Form Context | |
## Web Form Context |
@@ -433,6 +433,23 @@ The above configuration will render `/not_found` when a 404 is occurred. It is | |||
upto you to implement the template `www/not_found.html` and controller | |||
`www/not_found.py`. | |||
|
|||
## Custom Web Form Context | |||
|
|||
When a Web Form is created using non custom doctype, we can get the context from doctype's module but for Web Form using custom doctype you cannot get the context since custom doctype don't have modules, you can use this hook to create a context for Custom Web Form. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a Web Form is created using non custom doctype, we can get the context from doctype's module but for Web Form using custom doctype you cannot get the context since custom doctype don't have modules, you can use this hook to create a context for Custom Web Form. | |
When a Web Form is created for a standard doctype, we can get the context from doctype's module. Although for a Web Form for a custom doctype you cannot get the context since custom doctype don't have modules, you can use this hook to create a context for Custom Web Form. |
I tried re-wording this.
The sentence is too complex...Maybe break it down into 2-3 simpler sentences.
Use standard instead of "non custom", if it fits.
Also, wording for "doctype's module" is ambiguous. Even I'm not sure what you're talking about 😅
Hi @shariquerik , We moved to a new simpler contribution pipeline. Please move your changes (with requested changes) in this PR to the new site. You can now directly contribute to frappeframework.com. For new contribution guidelines, refer to frappeframework.com/contribute. Thanks for the contribution! |
Docs for getting context for custom webform using hooks.