-
Notifications
You must be signed in to change notification settings - Fork 814
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
Cannot interpolate custom functions parameters #6777
Comments
.. or maybe having a function that interpolate a string like:
.. but I don't know if nested functions work |
I am trying my custom interpolation solution to have my desired expression
but this work only for not nested questions. If I try to use it in a paneldynamic (for example) thanks a lot |
@masciugo You can check for const context = !!this.row ? this.row ? (!!this.panel ? this.panel : this.survey);
const q = context.getQuestionByName(questionName);
if(!q && context !== this.survey) q = this.survey.getQuestionByName(questionName); Regarding a new functionality, there is a high possibility that some developers requrie to pass "{val}" to a server. Thank you, |
Are you requesting a feature, reporting a bug or asking a question?
feature
What is the current behavior?
I have an async custom function called getRemoteObjectProp that return a remote object property. So the function run an http request to fetch the remote object and than provide the specified prop. The first parameter is the request url. I would like to build it dynamically:
My workaround at moment is replacing the placeholder
$
with the last parameters in an orderly mannerWhat is the expected behavior?
I'd like an interpolation like the one you can use in the choicesByUrl url property
thank you
The text was updated successfully, but these errors were encountered: