Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add formType option to custom action #79

Open
ksn135 opened this issue Dec 23, 2014 · 1 comment
Open

[Feature request] Add formType option to custom action #79

ksn135 opened this issue Dec 23, 2014 · 1 comment

Comments

@ksn135
Copy link
Contributor

ksn135 commented Dec 23, 2014

IMHO, it's great to extend s2a to automatically call createForm and renderView on custom action if option formType is set and after that call validation to check user input.
For example we call decline action, and form is checked for not blank reason field.
All fields and validations are defined in special formType class specified in options.

@sescandell sescandell added this to the next release milestone Dec 30, 2014
@sescandell
Copy link
Member

I think I see what you mean... Until now, I managed these case "manually" using normal Form creation (with AJAX and so on for example)... Let's discuss about that for a next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants