Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Changing required field based on response View modes: 
User avatar
Member
Member
trheath@pilotcat.com - 9/12/2013 4:00:54 PM
   
Changing required field based on response
Greetings,

How do I change if a field is required based on a response to another field?

Thanks,

Tim

User avatar
Member
Member
trheath@pilotcat.com - 9/12/2013 4:09:01 PM
   
RE:Changing required field based on response
Meant to point out I'm using the BizForms module

User avatar
Member
Member
kentico_sandroj - 9/12/2013 4:09:05 PM
   
RE:Changing required field based on response
Hello,

That depends if you are referring to document types, bizforms, Web parts, etc. but it sounds like you are referring to BizForms which are covered in this KB article.

Please let me know if you have any questions or additional details.

Best Regards,
Sandro

User avatar
Member
Member
trheath@pilotcat.com - 9/12/2013 4:19:59 PM
   
RE:Changing required field based on response
Hi Sandro,

Thanks for the response. What I'm trying to accomplish is kind of hard to explain.

Let's say I have 3 fields, by default they are all required. But let's say in Field 2 I select a certain option, I want to make field 3 optional now.

I think that might make more sense.

Thanks again,

Tim

User avatar
Member
Member
kentico_sandroj - 9/12/2013 5:04:37 PM
   
RE:Changing required field based on response
Hello,

Thank you for the additional clarification.

This is possible but it would have to be done in code using custom logic.

You would check what was entered as the value for field two then either save or throw an error, depending on the requirement for field 3.

Please let me know if you have any questions.

Best Regards,
Sandro

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/12/2013 10:48:38 PM
   
RE:Changing required field based on response
I'm not a big fan of JavaScript but this would be a good example of when you could use it. You could also create a custom macro to do the checking for you and set values.