Custom form control label not tied to CMSTextbox within said form control

Jonathan Ballinger asked on July 10, 2014 04:34

Hello,

We have a custom form control for an address lookup that is essentially a textbox with jquery added to generate dynamic output in a text area.

The control is added to a form as a custom field type, and my question is how can we tie the field caption to the CMSTextBox within the custom control? At present clicking on the caption isn't selecting the text box within the form control.

Thanks,

Jonathan

Recent Answers


Joe Krill answered on January 13, 2015 22:03

Is the label in question rendering as a span, or as a label element? If it's a span, take a look at this and see if it applies in your case:

http://devnet.kentico.com/forums?forumid=60&threadid=26365

I just wasted over an hour trying to figure out what was going on here. This is a perfect example of the lack of sufficient documentation for Kentico. I couldn't find this documented anywhere.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.