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

Allow evaluation on readonly like condition #597

Closed
robinduckett opened this issue Nov 18, 2015 · 4 comments
Closed

Allow evaluation on readonly like condition #597

robinduckett opened this issue Nov 18, 2015 · 4 comments

Comments

@robinduckett
Copy link

I don't know if this is a bug, or a feature, but currently, the "readonly" option which applies whether a form element should be disabled or not, take only a boolean value. If you pass in a model string, such as you can do with condition, it does not get evaluated, and gets cast as false, all the time.

https://gist.github.com/70a6463541309b29bacd

http://schemaform.io/examples/bootstrap-example.html#/70a6463541309b29bacd

It seems unintuitive that you can do this with conditional but not with readonly

@Anthropic Anthropic changed the title readonly option on forms are not evaluated Allow evaluation on readonly like condition Apr 9, 2016
@Anthropic
Copy link
Member

@robinduckett thanks for the suggestion, it doesn't currently get evaluated, conditional is the only value evaluated. We are going to be looking into ways to enhance the setting of rules for various fields at the moment actually.

@robinduckett
Copy link
Author

Thanks for getting back to me. Please let me know how it goes! Thanks.

@Anthropic Anthropic modified the milestone: Backlog Apr 24, 2016
@aman-gautam
Copy link

This would be a really great feature!

@Anthropic
Copy link
Member

CLosing this in favour of #879 I do want it, just have some more core work to be able to. I am trying to swap validators first that should give me more options.

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

4 participants