• Resolved willcrm

    (@willcrm)


    Hello I have been playing around with this plugin and have it mostly worked out but something I would like to know is if there’s a function to apply the required state to all fields without having each one added individually with the required=”{}” function. This is just as a cleanliness concern as I have about 15 fields that need to be filled out and all are required but only for that form and not the other forms for the lead entity and I am curious if I can keep the code compact.

Viewing 1 replies (of 1 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Hi @willcrm

    required attribute has always been as a quick workaround when online capture requirements are slightly different from Dynamics 365/CDS. Unfortunately we do not have any global approach to handle your situation. I find it a bit cumbersome that as many as 15 fields are mandatory on one form but not on another. If the objective of these fields vary so much, I would consider adding required fields in Dynamics 365/CDS, and then use workflow/Flow to copy the values as needed.

    Alternatively, you can add a bit of php code using WordPress actions but I doubt it’s going to be any cleaner or more maintainable.

    Cheers
    George

Viewing 1 replies (of 1 total)

The topic ‘Setting multiple required fields’ is closed to new replies.