# Read-only fields in forms

**URL:** https://community.baserow.io/t/read-only-fields-in-forms/4469
**Category:** Feature Ideas
**Tags:** forms, use-case
**Created:** [February 9, 2024, 11:25am UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469 "2024-02-09T11:25:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![asan](https://community.baserow.io/user_avatar/community.baserow.io/asan/32/2108_2.png) [@asan](https://community.baserow.io/u/asan)
#### Post date: [February 9, 2024, 11:25am UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469/1 "2024-02-09T11:25:45Z")

</div>

Hi all!

💡 Here is a new feature proposal: **allow to lock (prefilled) fields in forms** (or any other way to display field as read-only).

❓ **Why that ?** We developed a way to use forms with prefilled fields to allow users to **update** existing rows. Locking values would allow the user to have access to different fields values while not being able to change it.

_For instance, let’s say I have a table `Event` with different events (with fields like date, location, guests, concerts, etc.) and the user is the organizer of one them. I would like him to be able to update guests and concerts and not date and location. But it could be nice to display date and location on the form._

⚙ **How ?** I think the simplest way would be to add a tick in the form view and use the `prefill_` functionality to fill it. In the form, this would appear as read-only field (grey-scale or so).

 ![Sélection_087](https://community.baserow.io/uploads/default/original/2X/5/5959fa31fa5386767b1da2b1d4292dd9968cc002.png)

Hope this can be useful for other use cases!  
asan

---

<div class="post-metadata">

### Author: ![Govi](https://community.baserow.io/user_avatar/community.baserow.io/govi/32/1531_2.png) [@Govi](https://community.baserow.io/u/Govi)
#### Post date: [February 9, 2024, 3:24pm UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469/2 "2024-02-09T15:24:24Z")

</div>

Hello,  
I think it is a good idea to have locked fields in a form, but I wonder how it can be done to avoid malicious use.

If the information “this field is locked” is present in the URL (such as `prefill_` or `hide_` parameter, let’s imagine a `lock_` parameter), anyone can change the URL to unlock the field.

This should be set from the form creator view. Here is how it could look like (I copied the “required” tick):  
 ![image](https://community.baserow.io/uploads/default/original/2X/1/16cd1a250a44a489ad47e67f1189b44ab25dc014.png)

Then how could we prefill (and lock) dynamically a field? Even if the field is locked from the creator biew, anyone could change the `prefill_` parameter from the URL to change the value of the field.  
I think it is not possible to combine dynamic prefill and lock at the same time, or it should not be done in the URL.

Any idea?

---

<div class="post-metadata">

### Author: ![asan](https://community.baserow.io/user_avatar/community.baserow.io/asan/32/2108_2.png) [@asan](https://community.baserow.io/u/asan)
#### Post date: [March 14, 2024, 5:00pm UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469/3 "2024-03-14T17:00:00Z")

</div>

Hi @olgatrykush  
Any new about this feature? Is this something you have considered?  
Thanks for your answer!  
Asan

---

<div class="post-metadata">

### Author: ![olgatrykush](https://community.baserow.io/user_avatar/community.baserow.io/olgatrykush/32/219_2.png) [@olgatrykush](https://community.baserow.io/u/olgatrykush)
#### Post date: [March 15, 2024, 8:09am UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469/4 "2024-03-15T08:09:58Z")

</div>

Hey @asan, we’ll discuss new feature ideas this Monday. I’ll publish an update afterward. 🙂

---

<div class="post-metadata">

### Author: ![asan](https://community.baserow.io/user_avatar/community.baserow.io/asan/32/2108_2.png) [@asan](https://community.baserow.io/u/asan)
#### Post date: [March 18, 2024, 11:03pm UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469/5 "2024-03-18T23:03:54Z")

</div>

Great! Thank you vey much for your answer!

---

<div class="post-metadata">

### Author: ![olgatrykush](https://community.baserow.io/user_avatar/community.baserow.io/olgatrykush/32/219_2.png) [@olgatrykush](https://community.baserow.io/u/olgatrykush)
#### Post date: [March 28, 2024, 12:23pm UTC](https://community.baserow.io/t/read-only-fields-in-forms/4469/6 "2024-03-28T12:23:23Z")

</div>

Hello @asan and @Govi 👋

We’ve discussed this feature idea but haven’t found a solution yet. We understand your use case, @asan, but we also agree with @Govi that enabling pre-fill for read-only fields implies these values can be edited. We plan to revisit this request in a few weeks, as we need more time to consider it. Meanwhile, if you have some other arguments or use cases, feel free to share them.

As of now @asan, you can also use the application builder and have a bit more flexibility in how you display information and build forms.
