How to Lock/Readonly User Field

Discussion in 'Customization & add-ons' started by engineerwsu, Oct 30, 2020.

  1. engineerwsu

    engineerwsu Member

    Joined:
    Sep 18, 2014
    Messages:
    31
    I've created a user field (SQL). I'd like to lock that field and not allow edits based on some parameters. What would be the best way to do this? I can set the field to read-only in the form editor, but I would like to conditionally make the field read-only.

    Also, I noticed the validation of the user field has a minor flaw. If I select the "required" validation, this successfully validates against blank entry. However, if a user simply enters a few spaces, this will circumvent the validation. I assume the validation code could be revised to prevent whitespace-only entries.

    Thank you!
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    I am afraid there is not standard feature to make field read-only conditionally, but I believe it is possible to implement
    customization to achieve such feature. Please contact us in helpdesk for assistance:
    https://www.amember.com/support

    Best Regards.
  3. engineerwsu

    engineerwsu Member

    Joined:
    Sep 18, 2014
    Messages:
    31
    Thank you for your reply Caesar. I will do that. You guys' support is always fantastic!

Share This Page