1
0
-1

Can someone explain to me what this actually does?

I know it will add a mandatory marker to the referenced text.

But I then tried to use '${label} is required' as the Mandatory Message and that didn't work.

Looking at the source code, I also can't see any additional tags for web content accessiblity (fieldset, label, legend) when using this for radio button groups?

    CommentAdd your comment...

    2 answers

    1.  
      3
      2
      1

      As you surmised Mandatory Caption Field Reference just tells the validation framework where it should update the mandatory marker and thats all it does.

      ${label} will always be evaluated in the context of where its used. I'm guessing you are using a radio button group created by the radio button assistant. In this case the mandatory message property that you are setting is set on the radio button group. Radio button groups themself don't have labels so you would be getting back blank for ${label}. What I'm guessing you are wanting is the label property of the title field. You can either manually repeat this in the mandatory message property by just typing it again and appending ' is required.' or use the following formula to have the engine do this for you at generation time '$FIND{${rule.mandatory.caption.fieldref},label}  is required.'

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Thanks David.

        That is really useful. We have forms with many radio button groups and some of them have pretty long descriptions, so it'll really handy to be able to just copy and paste the formula into the blank msg, using the bulk editor.

          CommentAdd your comment...