<adduserpicker>

NEW TO VERSION 4.0
 

Used to select a user from the current portal and assign the user as the one that initially created the record. This control is not required. XMod normally automatically assigns the user without any intervention on your part. However, this control has been added for those situations where administrators or moderators create a record on behalf of a user. This is especially useful in combination with XMod's ability to show a user only those records he/she has added.  As with all XMod tags, the <adduserpicker> tag has a required child tag: <label> and several optional child tags.

 

ATTRIBUTES <adduserpicker>:

ref

Name of the control. This value must be unique within the form an must be a single word. (Required) [String value]  

Names must begin with a letter and may only include letters, numbers and the underscore character.

class

Name of the CSS Class used to style the control (Optional) [String value]

width

Specifies the width of the control. Values can be specified in various measurements:

Pixel (px) "1px"

Point (pt) "1pt"

Centimeter (cm) "1cm"

Millimeter (mm) "1mm"

Inch (in) "1in"

Em (em) "1em"

roles

A comma-delimited list of role names. If specified, only users that are members of the roles will be listed.

displayfield

This attribute determines what data will be displayed to the user. Valid values are:

 

  • UserId - The default. The user's DNN ID will be displayed
  • Username - The user's DNN username will be displayed
  • UserFullName - The user's First and Last name will be displayed.
  • Email - The user's email address. New to Version 4.3

 

noneselected

This can be set to true or false. If true or if the attribute isn't specified, the control will create a "(None Selected)" list item or display the text provided in the noneselectedtext attribute if provided.

noneselectedtext

If noneselected is true or not specified, the control will display this attribute's value. If this attribute is not specified, "(None Selected)" will be used.

style

Same as the HTML style attribute.It allows you to apply CSS styling to the element (e.g. "color: red; border: solid 1px black;")  (Optional). [String value]

ADDITIONAL ATTRIBUTES

accesskey

In browsers that support it, this property can be set to a character on the keyboard that can be used to set focus to the control. For instance, setting the value to F allows the user to access the control by pressing Alt+F on their keyboard (for Windows machines)

backcolor

Color of the background of the control.

bordercolor

Color of the border around the control

borderstyle

Style of the border around the control.

borderwidth

Width of the border around the control specified in units

enabled

Whether the control accepts input. May not work in older browsers. Valid values are true and false. The default value is true.

Font Properties

A series of attributes such as font-bold, font-size, etc. that allow you to control how the text in the control is displayed. Click the link for more for the list of properties and their description.

forecolor

Color of the text within the control.

tabindex

The tab order of the control.

tooltip

In those browsers that support it, this attribute specifies the text displayed in the tooltip when the mouse is over the control.

onfocus

Javascript specified here will be executed when the input control receives focus.

onblur

Javascript specified here will be executed when the input control loses focus.

onchange

Javascript specified here will be executed when the contents of the input control have changed

Client_Side Events

Javascript can be attached to certain events raised by this control. Click the link for more information.

CHILD TAGS

label

The caption used to identify the control

validate

Tells XMod to perform validation on the control. See <validate> attributes for more info.

info

This child tag can be used for most anything but is typically used to display more information (usually in a help-related context) about the data entry item.

ATTRIBUTES <validate>:

See <validate> tag topic

ATTRIBUTES <info>:

See <info> tag topic

EXAMPLE

<adduserpicker ref="AddUser" displayfield="userfullname">

  <label>Assign Record to </label>

</adduserpicker>