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

Provide a way to consume MultiFieldPanel values with an optionsProvider #417

Closed
dlh3 opened this issue Feb 14, 2015 · 3 comments
Closed

Comments

@dlh3
Copy link
Contributor

dlh3 commented Feb 14, 2015

Perhaps this is a better candidate for acs-aem-samples.

I think it would be great to see a mechanism for consuming MultiFieldPanel values with an optionsProvider. A simple use case is that a super user uses a MultiFieldPanel to define the options that will appear in a dropdown on a different dialog, which will be used by other, less privileged users.

The way that the MultiFieldPanel value is serialized, it can not be evaluated as the appropriate JSON object for an optionsProvider. A simple transformation to use the data is something like:

eval(json.replaceAll("\\\"", "'").replaceAll("\"", ""))
@davidjgonzalez
Copy link
Contributor

Creating an options provider sample would be great!

Wrt to Commons, I'm confused as to what would be populated? Would the options prepopulate field set? Or just a single field (ex drop down) in each set?

@dlh3
Copy link
Contributor Author

dlh3 commented Feb 16, 2015

I've created an example at https://gist.github.com/dlh3/11f8c2bd4efda0569c30

Please feel free to integrate this with acs-aem-samples.

@justinedelson
Copy link
Contributor

moved to samples

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

No branches or pull requests

3 participants