It's all about the answers!

Ask a question

How to validate a *required* attribute that has a default template?


Susan Hanson (1.6k2192194) | asked Jun 11 '14, 9:13 a.m.
We have an attribute which we have a default template for (for example, for a Story, we have a template which gives the creator an idea of what information/format the Story Description should be in.

We want to make that attribute Required from the stand point that not only does it have to have something *in* it, but it has to be different than the default template that we put it.

It looks like if we just make the attribute *required*, because it has the default template in it, RTC considers it "not empty" and we don't get an error.

I can write a validator to try to ensure that the contents != defaultTemplate ... but I don't want to have to just keep a copy/paste of the text and then have to update and redeploy the participant each time.

Is there a way to get the template text programmatically?

Susan

Be the first one to answer this question!


Register or to post your answer.