Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > meaningful id for form dropdown View modes: 
User avatar
Member
Member
Johnno - 2/18/2010 9:11:08 PM
   
meaningful id for form dropdown
I've created a contact page using a BizForms web part (which in turn uses a form with a custom layout).

The form has a drop down called "Contact Reason" and I need the form to dynamically show an extra input field if a particular reason is selected.

e.g. If reason selected is "Existing Customer" then an input box which prompts for a loan number should show.

So I need an "id" for my jquery code to detect.

So far, all I've been able to do is put the following between table cell tags

$$label:ContactReason$$ $$input:ContactReason$$

How would I add a meaningful "id" that I could use instead of the "id" generated by KencitoCMS e.g. id="plc_lt_pageContent_pageplaceholder_pageplaceholder_lt_middleColumn_BizForm_viewBiz_ctl00_ContactReason"

I'm very new with KenticoCMS so I'm sorry if this has been answered elsewhere.

User avatar
Member
Member
kentico_pavelk - 2/19/2010 10:07:03 AM
   
RE:meaningful id for form dropdown
Hello,

I would recommend you developing a custom form control that you can use in the biz form. In the code behind, you can implement displaying additional fields. Please find more details in our Developer's guide:
http://devnet.kentico.com/docs/devguide/index.html?developing_form_controls.htm


Best regards,
Pavel Knotek

User avatar
Member
Member
Johnno - 2/19/2010 2:50:40 PM
   
RE:meaningful id for form dropdown
Hi and thank you Pavel.

The custom form control looks like the easiest option.

There were a few options but at least now I can focus on just one.

Regards.
John Spence.