# Prefill fields from URL

**URL:** <https://farmos.discourse.group/t/prefill-fields-from-url/1112>\
**Category:** Using farmOS\
**Created:** [February 3, 2022, 6:34pm UTC](https://farmos.discourse.group/t/prefill-fields-from-url/1112 "2022-02-03T18:34:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pat](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/pat/32/1050_2.png) [@pat](https://farmos.discourse.group/u/pat)\
**Post date:** [February 3, 2022, 6:34pm UTC](https://farmos.discourse.group/t/prefill-fields-from-url/1112/1 "2022-02-03T18:34:50Z")

</div>

Hi all.

Is it possible to prefill a log using the URL?  
That would be cool.

For example :  
/log/add/activity=“Prefilled with asset-this and group-that”

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [February 3, 2022, 6:57pm UTC](https://farmos.discourse.group/t/prefill-fields-from-url/1112/2 "2022-02-03T18:57:56Z")

</div>

It actually is possible to prefill the `asset` field with asset IDs like this:

`/log/add/activity?asset[]=1&asset[]=2`

That’s the only “prepopulating” farmOS supports currently… but certainly could consider adding more.

That is handled here: [https://github.com/farmOS/farmOS/blob/35d30aaa0520bace516e6eea76f03eec62a83c05/modules/core/log/farm\_log.module#L14](https://github.com/farmOS/farmOS/blob/35d30aaa0520bace516e6eea76f03eec62a83c05/modules/core/log/farm_log.module#L14)

---

<div class="post-metadata">

**Author:** ![pat](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/pat/32/1050_2.png) [@pat](https://farmos.discourse.group/u/pat)\
**Post date:** [February 3, 2022, 8:01pm UTC](https://farmos.discourse.group/t/prefill-fields-from-url/1112/3 "2022-02-03T20:01:15Z")

</div>

Wow… That’s awesome.  
👍
