Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

"component" not available in "custom validation" #216

Open
StefanHoutzager opened this issue Jan 18, 2017 · 1 comment
Open

"component" not available in "custom validation" #216

StefanHoutzager opened this issue Jan 18, 2017 · 1 comment
Labels

Comments

@StefanHoutzager
Copy link

StefanHoutzager commented Jan 18, 2017

For example in the definition of a custom validation of a select component you can see "The global variables input, component, and valid are provided.". But when I put

console.log(component)
valid = true

in the editor I get runtime "component is not defined" in red letters below the element. For global variable input the console.log works as expected.
But what I would really like to have is a way to change the label of another element in the form depending on the input value of this select. Do you have a suggestion on how to accomplish this?

@StefanHoutzager StefanHoutzager changed the title components not available in "custom validation" "component" not available in "custom validation" Jan 18, 2017
@zackurben
Copy link
Contributor

@StefanHoutzager you can use scope.component for now, I'll add an issue to the backlog to make it a bit simpler. Thanks for the report!

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

No branches or pull requests

2 participants