Is it possible to add/delete or hide/show programmatically a choice in a radio button?

It is often necessary to restrict the radio button options depending on the user. How would this be possible with JavaScript in Plumsail Forms?

Hello @Cumatale,

You can check the name of the current user on the form load and hide options. For instance:

    //get current user name
    var userName = _spPageContextInfo.userDisplayName;

    if(userName == 'Jane Doe') {
        //hide first option

Also, you can get the current user login name, eg, using this code: