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

by (216k points)
0 votes

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

I am looking for a way to view the exact reason why someone would see the error below when accessing the web interface. It would be helpful to see this in a log ... "user attempted to access Web Interface section A, but is lacking the permission XYZ..."

asked Aug 6 by apruitt (530 points)
0 votes
1 answer

Hi everyone, I am deploying a new Adaxes Web Interface instance in a cross-domain environment and running into a connection/discovery issue. My Scenario: Domain A: Contains ... way to handle this cross-domain discovery block? Thanks in advance for your help!

asked Jul 8 by lbressan (100 points)
0 votes
1 answer

In the Adaxes web interface configuratior, you can set up custom actions, and adjust the object selector. I am able to set Object Selection to "Objects selected by user," and ... this question makes sense. Please let me know if there's anything I can clarify.

asked Nov 25, 2025 by apruitt (530 points)
0 votes
1 answer

Hi, there is a "Tutorials" link in the web interface config and its pointing to https://www.adaxes.com/tutorials_WebInterfaceCustomization.htm But it seems this page is (at least for me) not working currently.

asked Nov 4, 2025 by wintec01 (2.6k points)
0 votes
1 answer

Hello I am trying to export data via a script in a Business Rule for multiple users when their password is reset in the Web console, and I am having the following ... "%mail%" 'P' = "%unicodePwd%" } } $Data | Export-Csv -Path $csvFilePath -NoTypeInformation

asked Oct 10, 2025 by apruitt (530 points)
0 votes
1 answer