# How to have a Guest User that has View only for all Forms and Browses

**URL:** <https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037>\
**Category:** questions\
**Created:** [April 12, 2026, 11:36am UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037 "2026-04-12T11:36:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenns](https://clarionhub.com/user_avatar/clarionhub.com/kenns/32/6428_2.png) [@kenns](https://clarionhub.com/u/kenns)\
**Post date:** [April 12, 2026, 11:36am UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/1 "2026-04-12T11:36:10Z")

</div>

I presently have a user logon that has an access level that hides and unhides various procedures depending on a user level field.  
Is there a way with which I can have a simple setting to allow a Guest user have the ability to view but not add, change or delete?

---

<div class="post-metadata">

**Author:** ![Tuz\_Mwaura](https://clarionhub.com/user_avatar/clarionhub.com/tuz_mwaura/32/2240_2.png) [@Tuz\_Mwaura](https://clarionhub.com/u/Tuz_Mwaura)\
**Post date:** [April 12, 2026, 11:54am UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/2 "2026-04-12T11:54:59Z")

</div>

Hi Kenns,

on your browse init embed point you can add this code priority 9500  
BRW1.Init PROCEDURE

If UserAccessLevel = GuestUser  
SELF.InsertControl = 0  
SELF.ChangeControl = 0  
SELF.DeleteControl = 0  
end

You can improve this on an extension template.

HTH  
Tuz

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [April 12, 2026, 1:24pm UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/3 "2026-04-12T13:24:51Z")

</div>

What Templates ABC or Legacy?

Did you add a View button on all your Browses? That View button control template requires a View extension on the Form and some configuration to work.

Without a View button I would add code to the Form to spot the Guest User and make it impossible for them to change fields or the file:

- Spot Request of Add or Delete and reject that
- Change the Cancel button to Close
- Disable the OK button and Hide it
- Disable all other buttons, they often do lookups
- Make all controls ReadOnly and Skip
- Ok Accepted and Event Completed check for Guest and reject
- Etc

I would do this on a Global Extension that looks for the Save button, that is what makes it a form.

The Guest extension could look for Browse update buttons and rename Change to View, plus prevent Add or Delete from working.

---

<div class="post-metadata">

**Author:** ![seanh](https://clarionhub.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@seanh](https://clarionhub.com/u/seanh)\
**Post date:** [April 12, 2026, 10:46pm UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/4 "2026-04-12T22:46:53Z")

</div>

I’m going to assume ABC, because I don’t remember legacy at this point 🙂  
In the form, thisWindow.init there a point high up where the request is set.  
You need to set localRequest = ViewRecord The form will do the rest.

As noted above you can create an extension template to do it everywhere.

---

<div class="post-metadata">

**Author:** ![kenns](https://clarionhub.com/user_avatar/clarionhub.com/kenns/32/6428_2.png) [@kenns](https://clarionhub.com/u/kenns)\
**Post date:** [April 14, 2026, 12:17pm UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/5 "2026-04-14T12:17:26Z")

</div>

Thanks for the response. I am having difficulty in determining where I should be looking to locate “thisWindow.init”. I am using ABC, and an looking in the form’s embed points. Is this correct, or should I be looking elsewhere?  
Regards, Kenn

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [April 14, 2026, 12:37pm UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/6 "2026-04-14T12:37:07Z")

</div>

@seanh is refering to the ABC Form.

Example Apps: ABCForms.app  
Form (Procedure): Form\_Discounts

```clarion
ThisWindow.Init PROCEDURE

ReturnValue BYTE,AUTO

! Start of "WindowManager Method Data Section"
! [Priority 5000]

! End of "WindowManager Method Data Section"
  CODE
  ! Start of "WindowManager Method Executable Code Section"
  ! [Priority 300]

  ! Enter procedure scope
  GlobalErrors.SetProcedureName('Form_Discounts')
  ! [Priority 2700]
 IF Condition   
 GlobalRequest = ViewRecord ! See Line 8 in C:\Clarion6\LibSrc\ABFILE.EQU
 END
  ! Snap-shot GlobalRequest
  SELF.Request = GlobalRequest ! Store the incoming request
  ! [Priority 4950]

```

@Tuz_Mwaura doesnt specify which Browse Init method in the Browse window, theres 3 to choose from.

---

<div class="post-metadata">

**Author:** ![Tuz\_Mwaura](https://clarionhub.com/user_avatar/clarionhub.com/tuz_mwaura/32/2240_2.png) [@Tuz\_Mwaura](https://clarionhub.com/u/Tuz_Mwaura)\
**Post date:** [April 14, 2026, 12:56pm UTC](https://clarionhub.com/t/how-to-have-a-guest-user-that-has-view-only-for-all-forms-and-browses/9037/7 "2026-04-14T12:56:39Z")

</div>

I meant this would be applied on a browse window procedure where the caller action buttons are.  
On the Browse Object Class in my case its BRW1

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/d/dfd1d49522e05041dd44b4d61945a100e1820cfa.png)
