How can I make a field conditionally required (without using a validation rule)?

edited February 25, 2019 in Ideas
I have a couple of fields that should not be required based on data in the rest of the record. I'd rather not mark them as not required and build a validation rule on the back end. We are using these pages in our community and validation rules are often seen as a gotcha by users who can't see that it is required until they go to save. Ideas?
2
2 votes

Under Consideration · Last Updated

Comments

  • Rob HatchRob Hatch 💎💎💎
    edited September 1, 2016
    We've been kicking aroudn the idea of packaging conditional properties with the rendering conditions that we are working on.  So for any given component - in addition to building conditions that manage if it should show or hide,  conditions could determine whether the field should be required, set its default value,  etc.  Of course that's all pie in the sky right now,  but its where we are headed. 

    For now I think the answer is that you could control the client side validation with custom Javascript using a custom renderer.    I think thats the best you could do...
  • edited July 18, 2017
    Hello, Was this ever built into the product?
  • edited February 25, 2019
    We just put the field twice on the layout - once as required, and conditionally show this field when the field is required.  Other time is the not required version.  The situation drives whether the user sees the required or not required field.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!