0 votes

Is it possible to have one field in a "Create User" request to be required depending on the value of another.

For instance, if i selected the EmployeeType as staff, the EmployeeNumber would become a required field, but if i chose Contractor, this field would not be required.

I have tried to have two different property patterns assigned to the same users OU one for employee and one for contractors but this doenst give the desired effect. To get aorund this i could have two seperate forms, one for staff and one for contractos but i wanted to see if there was a neater way to provide the pre-submit validation.

by (60 points)

1 Answer

0 votes
by (216k points)

Chris,

Actually, you have three options.

Two of them you have already listed, that is using different Property Patterns and different Create User forms. The third one is to check EmployeeType with a PowerShell script and make the EmployeeNumber property required depending on the value of the EmployeeType property. See the Validate/Modify User Input Using a Script Tutroial. Note, however, that this check will only be performed after the create user request has been submitted.

Related questions

0 votes
1 answer

I added a chart based on report "soon-to-expire passwords" to the homepage. In Adaxes console, it will show a chart with time/date of when the password will expire. In the ... the report in web interface, it will show data but the chart will still be blank.

asked Mar 20 by tromanko (180 points)
0 votes
1 answer

What I'm trying to accomplish: user should have access to modify certain accounts where customTextAttribute2="test" (example). When I modify the criteria under "object selection" ... to query custom attributes or do you have to use AD attributes for this?

asked Mar 19 by tromanko (180 points)
0 votes
1 answer

Is there a way to configure the module "Member of" in a "View user"-action as purely read only? As it stands now we are able to navigate to a seperate viewing page ... needs write-access to AD, we can't specify purely read-rights via the security role either.

asked Mar 8 by Handernye (50 points)
0 votes
1 answer

As you can see in the picture, we currently have three different formats as soon as we look at a user's data. Can this be adjusted so that only one format dd.mm.yyyy is displayed? Thank you very much

asked Nov 17, 2023 by DRiVSSi (240 points)
0 votes
1 answer

We have several Office 365 groups where the someone is an Owner but not a Member, and we'd like to give them the ability through the web interface to give them the ability ... option in the web interface to allow them to add or remove users via a custom task?

asked Nov 1, 2023 by PaulO (20 points)
3,326 questions
3,026 answers
7,727 comments
544,681 users