# Hide 'take picture' & 'choose image' buttons for image widget when defaults are being used

**URL:** <https://forum.getodk.org/t/hide-take-picture-choose-image-buttons-for-image-widget-when-defaults-are-being-used/42277>\
**Category:** Ideas\
**Tags:** odk-collect\
**Created:** [July 17, 2023, 1:20am UTC](https://forum.getodk.org/t/hide-take-picture-choose-image-buttons-for-image-widget-when-defaults-are-being-used/42277 "2023-07-17T01:20:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Xiphware](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/xiphware/32/2587_2.png) [@Xiphware](https://forum.getodk.org/u/Xiphware)\
**Post date:** [August 19, 2024, 12:53am UTC](https://forum.getodk.org/t/hide-take-picture-choose-image-buttons-for-image-widget-when-defaults-are-being-used/42277/6 "2024-08-19T00:53:18Z")

</div>

> [@ahblake](#):
>
> I tried various methods to trigger the default but as a trigger can't be an `or` expression...

Yes and no... The manner in which [triggers](https://xlsform.org/en/#trigger) are defined _in XLSForm_ means that no, you cannot have a **dependent** question being 'triggered' by anything other than a change in a _single_ so-called **antecedent** question [aside, I discuss this limitation, albeit in a difference context, in some detail here: [Spec proposal: expose xforms-value-changed event with odk:setgeopoint action in XLSForm](https://forum.getodk.org/t/spec-proposal-expose-xforms-value-changed-event-with-odk-setgeopoint-action-in-xlsform/48655)]. Which is to say, Question B can only be 'triggered' by a change in Question A, not as you say a change in Question A _or_ C.

However, under the covers in raw XForms, there is actually nothing to prevent you performing _multiple_ **xforms-value-changed** event triggered **setvalue** actions - which is bascially what an XLSForm trigger becomes - to accomplish this. That is, you can actually have Question B be recalculated whenever Question A changes **or** when Question C changes (in fact they can even perform completely different calculations!)

Have a play with this XForm. It essentially consists of two different types of multi-triggers. The first triggers the same calculation whenever either of two antecedent questions change; basically your "trigger can't be an `or` expression" situation. The second set is a min/max example that readjusts a previously entered value should the min or max then be adjusted.

[MultiTriggers.xml](https://forum.getodk.org/uploads/short-url/gqPnITOaT7TK7DPfo4zwzriRqUO.xml) (2.3 KB)

 ![Screenshot 2024-08-19 at 12.52.33 PM](https://getodk.b-cdn.net/uploads/default/original/3X/e/0/e0158c6ad66b20b12554c482840f73401ca7a44a.png)

I'm not 100% sure of your specific usecase around restoring original images, but - at least in terms of being able to have an `or` expression of some form as a trigger - perhaps this could be helpful?

---

_[View the full topic](https://forum.getodk.org/t/hide-take-picture-choose-image-buttons-for-image-widget-when-defaults-are-being-used/42277)._
