# Validate a field based on other fields

**URL:** https://community.glideapps.com/t/validate-a-field-based-on-other-fields/79744
**Category:** Ask for Help
**Created:** [February 3, 2025, 8:47am UTC](https://community.glideapps.com/t/validate-a-field-based-on-other-fields/79744 "2025-02-03T08:47:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JDB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jdb/32/84507_2.png) [@JDB](https://community.glideapps.com/u/JDB)
#### Post date: [February 3, 2025, 8:47am UTC](https://community.glideapps.com/t/validate-a-field-based-on-other-fields/79744/1 "2025-02-03T08:47:49Z")

</div>

So the edit form has a “Published” switch. When on, need to verify if images have been provided.

The workflow below attempts to do it, but the “Published” field evaluated in the condition is from the stored data(not the field value in the form)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/3/43ebda3d515624d2725afd0bd65a7771a5d3047c.png)

So how to evaluate the Published field in the form?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [February 3, 2025, 9:54am UTC](https://community.glideapps.com/t/validate-a-field-based-on-other-fields/79744/2 "2025-02-03T09:54:39Z")

</div>

Can you not make the Image Picker “required” in your form?

If for any reason that doesn’t resolve the issue, then an approach that can be taken is to use a Custom Form.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particular…
