getuser.priority does not equal high.
Use <cfdump var="#getuser#"> and <cfdump var="#session#"> to see what
values are being returned.
Also remove the #s from within the cfif, they are not needed.
Robert Orlini wrote:
> I'm trying to restrict an option on a dropdown from appearing based on
> the users priority. I have the code below which does not generate any
> errors but will not display the "Custom Message" option when the
> priority is the correct one. What am I missing here please?
>
> <option>Select one of six messages from this list</option>
> <option value="maintenance">System Down for Scheduled Maintenance</option>
> <option value="circuitproblems">System Down/Internet Circuit
> Problems</option>
> <CFIF #session.username# EQ #getuser.username# and getuser.priority is
> "high"><option value="custom">Custom Status Message</option></cfif>
> </select>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

