# Posting to different servers on same device

**URL:** <https://forum.getodk.org/t/posting-to-different-servers-on-same-device/4247>\
**Category:** Support\
**Created:** [April 21, 2015, 12:08pm UTC](https://forum.getodk.org/t/posting-to-different-servers-on-same-device/4247 "2015-04-21T12:08:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bergie](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/b/e56c9b/32.png) [@Bergie](https://forum.getodk.org/u/Bergie)\
**Post date:** [April 21, 2015, 12:08pm UTC](https://forum.getodk.org/t/posting-to-different-servers-on-same-device/4247/1 "2015-04-21T12:08:49Z")

</div>

A quick search did not yield any answers, so apologies if I missed a  
solution.

We are using ODK to collect site data and even vehicle log sheets with ODK.  
So that is working great. Thanks ODK team!

However I get requests from other people to help them set up more forms.  
Typically our neighbourhood watch may want to log suspicious activity and  
the baboon monitors have issued paper logs to track baboon activity. (The  
paper logs seldom gets past the "fridge magnet" stage...)

For professional reasons, I cannot share the same server for a "public"  
and a "private" profile.  
My problem is trying to find a way to download and upload forms and data to  
different servers from the same device. I.e, I want to upload a baboon  
monitor form to server "X" and by day's end a site form to form to "Y." All  
this without having to manually set servers before upload. It should be  
fine to download form definitions from the same place, but not to upload it  
there. Public users need access to public data only.

I have this idea in mind to start a central server for form definitions,  
and two or more servers for submissions while the form definitions says  
where a specific form should be submitted to. Of course the form  
definitions should be on at least two servers.

is it possible to set this functionality in the form definition? I've read  
about securing data, but still not sure if this is possible.

Thank you

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [April 21, 2015, 12:13pm UTC](https://forum.getodk.org/t/posting-to-different-servers-on-same-device/4247/2 "2015-04-21T12:13:53Z")

</div>

Hi Bergie,

You can add a submission url to the form that specifies which server  
submissions are sent to.

If you are using XML forms, the code looks like  
[https://opendatakit.org/help/encrypted-forms](https://opendatakit.org/help/encrypted-forms), but you don't need to  
add base64RsaPublicKey.

If you are using XForms, then it's a submission\_url column in your  
settings sheet. See [http://xlsform.org/#settings](http://xlsform.org/#settings)

Yaw

> **···**
>
> -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.
> 
> On Tue, Apr 21, 2015 at 6:08 AM, Bergie [bergie5737@gmail.com](mailto:bergie5737@gmail.com) wrote:
> 
> > A quick search did not yield any answers, so apologies if I missed a  
> > solution.
> > 
> > We are using ODK to collect site data and even vehicle log sheets with ODK.  
> > So that is working great. Thanks ODK team!
> > 
> > However I get requests from other people to help them set up more forms.  
> > Typically our neighbourhood watch may want to log suspicious activity and  
> > the baboon monitors have issued paper logs to track baboon activity. (The  
> > paper logs seldom gets past the "fridge magnet" stage...)
> > 
> > For professional reasons, I cannot share the same server for a "public" and  
> > a "private" profile.  
> > My problem is trying to find a way to download and upload forms and data to  
> > different servers from the same device. I.e, I want to upload a baboon  
> > monitor form to server "X" and by day's end a site form to form to "Y." All  
> > this without having to manually set servers before upload. It should be fine  
> > to download form definitions from the same place, but not to upload it  
> > there. Public users need access to public data only.
> > 
> > I have this idea in mind to start a central server for form definitions, and  
> > two or more servers for submissions while the form definitions says where a  
> > specific form should be submitted to. Of course the form definitions should  
> > be on at least two servers.
> > 
> > is it possible to set this functionality in the form definition? I've read  
> > about securing data, but still not sure if this is possible.
> > 
> > Thank you
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "ODK Community" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bergie](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/b/e56c9b/32.png) [@Bergie](https://forum.getodk.org/u/Bergie)\
**Post date:** [April 21, 2015, 1:52pm UTC](https://forum.getodk.org/t/posting-to-different-servers-on-same-device/4247/3 "2015-04-21T13:52:17Z")

</div>

Thank you for the reply.  
I did just what I planned. 😉  
It is working as I expected. I thought it will only work with encrypted  
forms. Now I can add form definitions to one server and have it uploaded to  
another. I should have done this from the start....

Solved  
Thank you

> **···**
>
> On Tuesday, 21 April 2015 14:08:49 UTC+2, Bergie wrote: \> \> A quick search did not yield any answers, so apologies if I missed a \> solution. \> \> We are using ODK to collect site data and even vehicle log sheets with \> ODK. So that is working great. Thanks ODK team! \> \> However I get requests from other people to help them set up more forms. \> Typically our neighbourhood watch may want to log suspicious activity and \> the baboon monitors have issued paper logs to track baboon activity. (The \> paper logs seldom gets past the "fridge magnet" stage...) \> \> For professional reasons, I cannot share the same server for a "public" \> and a "private" profile. \> My problem is trying to find a way to download and upload forms and data \> to different servers from the same device. I.e, I want to upload a baboon \> monitor form to server "X" and by day's end a site form to form to "Y." All \> this without having to manually set servers before upload. It should be \> fine to download form definitions from the same place, but not to upload it \> there. Public users need access to public data only. \> \> I have this idea in mind to start a central server for form definitions, \> and two or more servers for submissions while the form definitions says \> where a specific form should be submitted to. Of course the form \> definitions should be on at least two servers. \> \> is it possible to set this functionality in the form definition? I've read \> about securing data, but still not sure if this is possible. \> \> Thank you \> \> \>
