Calculate max score on content creation

Is is possible to calculate max score when creating the content with the editor? How would I do to calculate the max score then?

falcon's picture

I'm not sure what you mean. Do you want to create a javascript that does it when you save or you want to do it manually? For fill in the blanks for instance max score equals the number of blanks IIRC.

Yes I want to create a javascript the does it. The best way would be if I could call getMaxScore() somehow. Ofcource it is possible the calculate it but then there have to be one case for every different content type.

falcon's picture

Yeah, there is no getMaxScore function to call in the editor. The wysiwyg editors probably has getMaxScore functions but not the generic editors. We'll add this feature in the future. Currently you'll have to add one case for each content type :/