We are using HTML form entry to design our forms. In one of the forms, we want to perform some calculations based on the concept selected. The concept has a Custom Attribute Ratings which we want to use for calculation. We want to know how to get this attribute in our javascript files.
You can fetch the Concept by its ID using the Velocity function fn.getConcept(String conceptId), and once you have it at hand get the wanted attribute. Have you tried that?
Sure, we can give this a try.
However, in the scenario we want to avoid fetch all the concept as JavaScript variables.
The scenario is, we have a few question concepts added to form. The answer concepts have a rating associated. We want to do some calculations based on the rating of answer selected for a particular questions.
If we try the above method, we will have to fetch all the answer concept with their ratings. This way we will loose flexibility of the adding new answers going forward.
Not sure, if this is possible or there is a different approach towards this?