Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Conditional BizForm Section View modes: 
User avatar
Member
Member
wrb-seqinc - 5/3/2011 8:18:59 AM
   
Conditional BizForm Section
Hello,

We just implemented a BizForm on a client's site and I'm looking for a way to make a certain section conditional based on another question. For example, we have a question asking the user what type of account they want to open. Only if they select joint account do we want to show them the section for joint accounts.

I'm thinking the best way to handle this would be with JavaScript but figured I would ask to see if there is a better solution that is more inherent to Kentico.

Thanks,
Ryan

User avatar
Member
Member
kentico_michal - 5/4/2011 5:56:14 AM
   
RE:Conditional BizForm Section
Hello Ryan,

I would recommend creating custom form control which would contain a group of dependent fields/controls.

Moreover, if you want to hide some of the fields in the form control dynamically without postback, using JavaScript is the best way how to do this, since Kentico CMS does not provide any alternative way.

Best regards,
Michal Legen

User avatar
Member
Member
wrb-seqinc - 5/4/2011 10:48:34 AM
   
RE:Conditional BizForm Section
Ok, thanks for the tip on a custom control! I'll implement the conditional fields with JS, just figured I'd check to see if there was already built-in functionality that I wasn't seeing.

Thanks,
Ryan