Field like textarea

I would like to create a code field with some collected data. This
code must be copied in other forms. I think it is necessary to show
the code into a field like textarea. Then, the interviewer can copy
(long-press) and paste in other form. That is possible with Xform for
ODK Collect?

you can use the calculate tag to combine values from a few instances
to create the code field. you can then show that field as the value of
an input instance, copy that value, and paste it wherever. the catch
is that the user could also wipe that value from the code field...

anyway, the short answer is that yes, it's possible. you may have to
tweak 1-2 lines of code to bypass the wiping problem and make the user
interaction more elegant.

··· On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: > I would like to create a code field with some collected data. This > code must be copied in other forms. I think it is necessary to show > the code into a field like textarea. Then, the interviewer can copy > (long-press) and paste in other form. That is possible with Xform for > ODK Collect? > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks for ODK Community, i wont know if somebody knows how to do
better that I made in the XForm below. It is not very elegant for the
user. I want to put the instance codeAll into editable field for copy
and paste with long press. Somebody can help me?

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://
www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"
encoding="UTF-8" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jr="http://openrosa.org/javarosa"> <h:head>
<h:title>Ricardo Test</h:title>












First name:





Last name:





Age:





  <bind nodeset="/data/firstname" type="string"/>
  <bind nodeset="/data/lastname" type="string"/>
  <bind nodeset="/data/age" type="int"/>
  <bind nodeset="/data/codeAll" type="string" constraint=". !=

'no'" jr:constraintMsg="Please, confirm"/>

</model>

</h:head>
<h:body>

<input ref="firstname">
	<label ref="jr:itext('/data/firstname:label')"/>
	<hint ref="jr:itext('/data/firstname:hint')"/>
</input>
<input ref="lastname">
  <label ref="jr:itext('/data/lastname:label')"/>
  <hint ref="jr:itext('/data/lastname:hint')"/>
</input>
<input ref="age">
  <label ref="jr:itext('/data/age:label')"/>
  <hint ref="jr:itext('/data/age:hint')"/>
</input>
<trigger ref="/data/codeAll">
     <label>This is the code to copy and paste: <output value="/

data/firstname"/>

</h:body>

</h:html>

··· On 18 nov, 12:54, Yaw Anokwa wrote: > you can use the calculate tag to combine values from a few instances > to create the code field. you can then show that field as the value of > an input instance, copy that value, and paste it wherever. the catch > is that the user could also wipe that value from the code field... > > anyway, the short answer is that yes, it's possible. you may have to > tweak 1-2 lines of code to bypass the wiping problem and make the user > interaction more elegant. > > > > > > > > On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: > > I would like to create a code field with some collected data. This > > code must be copied in other forms. I think it is necessary to show > > the code into a field like textarea. Then, the interviewer can copy > > (long-press) and paste in other form. That is possible with Xform for > > ODK Collect? > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en

what high level goal are you trying to accomplish by copying and
pasting values across forms? do you want a way to link forms with a
unique id? can you combine those linked forms into one form?

··· On Thu, Nov 18, 2010 at 09:04, Ricardo Cardoso wrote: > Thanks for ODK Community, i wont know if somebody knows how to do > better that I made in the XForm below. It is not very elegant for the > user. I want to put the instance codeAll into editable field for copy > and paste with long press. Somebody can help me? > > > encoding="UTF-8" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:jr="http://openrosa.org/javarosa"> > Ricardo Test > > > > > > > > > > > > > First name: > > > > > > Last name: > > > > > > Age: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is the code to copy and paste: __ > > > > > > > > > > > > On 18 nov, 12:54, Yaw Anokwa wrote: >> you can use the calculate tag to combine values from a few instances >> to create the code field. you can then show that field as the value of >> an input instance, copy that value, and paste it wherever. the catch >> is that the user could also wipe that value from the code field... >> >> anyway, the short answer is that yes, it's possible. you may have to >> tweak 1-2 lines of code to bypass the wiping problem and make the user >> interaction more elegant. >> >> >> >> >> >> >> >> On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: >> > I would like to create a code field with some collected data. This >> > code must be copied in other forms. I think it is necessary to show >> > the code into a field like textarea. Then, the interviewer can copy >> > (long-press) and paste in other form. That is possible with Xform for >> > ODK Collect? >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Ok
The customer need to combine 4 fields into unique ID. He has two
forms. One for individual and other for family. In this case,
Amazonian forest, it is possible to have more then one family per
domicile. How the customer will use this unique ID? I do not know
certainty. The customer goes to process later in SPSS.
Thanks again!

··· On 18 nov, 15:19, Yaw Anokwa wrote: > what high level goal are you trying to accomplish by copying and > pasting values across forms? do you want a way to link forms with a > unique id? can you combine those linked forms into one form? > > > > > > > > On Thu, Nov 18, 2010 at 09:04, Ricardo Cardoso wrote: > > Thanks for ODK Community, i wont know if somebody knows how to do > > better that I made in the XForm below. It is not very elegant for the > > user. I want to put the instance codeAll into editable field for copy > > and paste with long press. Somebody can help me? > > > > encoding="UTF-8" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:jr="http://openrosa.org/javarosa"> > > Ricardo Test > > > > > > > > > > > > > > > > > > > > > > > > > > First name: > > > > > > > > > > > > Last name: > > > > > > > > > > > > Age: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is the code to copy and paste: __ > > > > > > > > > > On 18 nov, 12:54, Yaw Anokwa wrote: > >> you can use the calculate tag to combine values from a few instances > >> to create the code field. you can then show that field as the value of > >> an input instance, copy that value, and paste it wherever. the catch > >> is that the user could also wipe that value from the code field... > > >> anyway, the short answer is that yes, it's possible. you may have to > >> tweak 1-2 lines of code to bypass the wiping problem and make the user > >> interaction more elegant. > > >> On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: > >> > I would like to create a code field with some collected data. This > >> > code must be copied in other forms. I think it is necessary to show > >> > the code into a field like textarea. Then, the interviewer can copy > >> > (long-press) and paste in other form. That is possible with Xform for > >> > ODK Collect? > > >> > -- > >> > Post: opendatakit@googlegroups.com > >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > >> > Options:http://groups.google.com/group/opendatakit?hl=en > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en

why not have domicile form that has a family section that repeats?
inside the family section you could also have an individual section
that repeats...

··· On Thu, Nov 18, 2010 at 10:45, Ricardo Cardoso wrote: > Ok > The customer need to combine 4 fields into unique ID. He has two > forms. One for individual and other for family. In this case, > Amazonian forest, it is possible to have more then one family per > domicile. How the customer will use this unique ID? I do not know > certainty. The customer goes to process later in SPSS. > Thanks again! > > On 18 nov, 15:19, Yaw Anokwa wrote: >> what high level goal are you trying to accomplish by copying and >> pasting values across forms? do you want a way to link forms with a >> unique id? can you combine those linked forms into one form? >> >> >> >> >> >> >> >> On Thu, Nov 18, 2010 at 09:04, Ricardo Cardoso wrote: >> > Thanks for ODK Community, i wont know if somebody knows how to do >> > better that I made in the XForm below. It is not very elegant for the >> > user. I want to put the instance codeAll into editable field for copy >> > and paste with long press. Somebody can help me? >> >> > > > encoding="UTF-8" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> > xmlns:jr="http://openrosa.org/javarosa"> >> > Ricardo Test >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > First name: >> > >> > >> > >> > >> > >> > Last name: >> > >> > >> > >> > >> > >> > Age: >> > >> > >> > >> > >> > >> > >> >> > >> > >> > >> > >> >> > >> > >> > >> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > This is the code to copy and paste: __ >> > >> >> > >> > >> >> > On 18 nov, 12:54, Yaw Anokwa wrote: >> >> you can use the calculate tag to combine values from a few instances >> >> to create the code field. you can then show that field as the value of >> >> an input instance, copy that value, and paste it wherever. the catch >> >> is that the user could also wipe that value from the code field... >> >> >> anyway, the short answer is that yes, it's possible. you may have to >> >> tweak 1-2 lines of code to bypass the wiping problem and make the user >> >> interaction more elegant. >> >> >> On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: >> >> > I would like to create a code field with some collected data. This >> >> > code must be copied in other forms. I think it is necessary to show >> >> > the code into a field like textarea. Then, the interviewer can copy >> >> > (long-press) and paste in other form. That is possible with Xform for >> >> > ODK Collect? >> >> >> > -- >> >> > Post: opendatakit@googlegroups.com >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Yes, I will go to try this.
My problem is the little available documentation about Collect form
code, but I found WidGets.xml in
http://code.google.com/p/opendatakit/source/browse?repo=forms
Its very good sample.
Thanks

··· On 18 nov, 20:42, Yaw Anokwa wrote: > why not have domicile form that has a family section that repeats? > inside the family section you could also have an individual section > that repeats... > > > > > > > > On Thu, Nov 18, 2010 at 10:45, Ricardo Cardoso wrote: > > Ok > > The customer need to combine 4 fields into unique ID. He has two > > forms. One for individual and other for family. In this case, > > Amazonian forest, it is possible to have more then one family per > > domicile. How the customer will use this unique ID? I do not know > > certainty. The customer goes to process later in SPSS. > > Thanks again! > > > On 18 nov, 15:19, Yaw Anokwa wrote: > >> what high level goal are you trying to accomplish by copying and > >> pasting values across forms? do you want a way to link forms with a > >> unique id? can you combine those linked forms into one form? > > >> On Thu, Nov 18, 2010 at 09:04, Ricardo Cardoso wrote: > >> > Thanks for ODK Community, i wont know if somebody knows how to do > >> > better that I made in the XForm below. It is not very elegant for the > >> > user. I want to put the instance codeAll into editable field for copy > >> > and paste with long press. Somebody can help me? > > >> > >> > encoding="UTF-8" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > >> > xmlns:jr="http://openrosa.org/javarosa"> > >> > Ricardo Test > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > First name: > >> > > >> > > >> > > >> > > >> > > >> > Last name: > >> > > >> > > >> > > >> > > >> > > >> > Age: > >> > > >> > > >> > > >> > > >> > > >> > > > >> > > >> > > >> > > >> > > > >> > > >> > > >> > > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > This is the code to copy and paste: __ > >> > > > >> > > >> > > > >> > On 18 nov, 12:54, Yaw Anokwa wrote: > >> >> you can use the calculate tag to combine values from a few instances > >> >> to create the code field. you can then show that field as the value of > >> >> an input instance, copy that value, and paste it wherever. the catch > >> >> is that the user could also wipe that value from the code field... > > >> >> anyway, the short answer is that yes, it's possible. you may have to > >> >> tweak 1-2 lines of code to bypass the wiping problem and make the user > >> >> interaction more elegant. > > >> >> On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: > >> >> > I would like to create a code field with some collected data. This > >> >> > code must be copied in other forms. I think it is necessary to show > >> >> > the code into a field like textarea. Then, the interviewer can copy > >> >> > (long-press) and paste in other form. That is possible with Xform for > >> >> > ODK Collect? > > >> >> > -- > >> >> > Post: opendatakit@googlegroups.com > >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > >> >> > Options:http://groups.google.com/group/opendatakit?hl=en > > >> > -- > >> > Post: opendatakit@googlegroups.com > >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > >> > Options:http://groups.google.com/group/opendatakit?hl=en > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en

if you go to the
http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines on our
wiki, there are links to the spec
(http://code.javarosa.org/wiki/xform), to a tutorial
(http://code.javarosa.org/wiki/buildxforms), and to a few form
designers (http://build.opendatakit.org,
http://code.google.com/p/purcforms/ and http://xform.childcount.org)

··· On Fri, Nov 19, 2010 at 04:59, Ricardo Cardoso wrote: > Yes, I will go to try this. > My problem is the little available documentation about Collect form > code, but I found WidGets.xml in > http://code.google.com/p/opendatakit/source/browse?repo=forms > Its very good sample. > Thanks > > On 18 nov, 20:42, Yaw Anokwa wrote: >> why not have domicile form that has a family section that repeats? >> inside the family section you could also have an individual section >> that repeats... >> >> >> >> >> >> >> >> On Thu, Nov 18, 2010 at 10:45, Ricardo Cardoso wrote: >> > Ok >> > The customer need to combine 4 fields into unique ID. He has two >> > forms. One for individual and other for family. In this case, >> > Amazonian forest, it is possible to have more then one family per >> > domicile. How the customer will use this unique ID? I do not know >> > certainty. The customer goes to process later in SPSS. >> > Thanks again! >> >> > On 18 nov, 15:19, Yaw Anokwa wrote: >> >> what high level goal are you trying to accomplish by copying and >> >> pasting values across forms? do you want a way to link forms with a >> >> unique id? can you combine those linked forms into one form? >> >> >> On Thu, Nov 18, 2010 at 09:04, Ricardo Cardoso wrote: >> >> > Thanks for ODK Community, i wont know if somebody knows how to do >> >> > better that I made in the XForm below. It is not very elegant for the >> >> > user. I want to put the instance codeAll into editable field for copy >> >> > and paste with long press. Somebody can help me? >> >> >> > > >> > encoding="UTF-8" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> >> > xmlns:jr="http://openrosa.org/javarosa"> >> >> > Ricardo Test >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > First name: >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Last name: >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Age: >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >> > >> >> > >> >> > >> >> > >> >> >> > >> >> > >> >> > >> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > This is the code to copy and paste: __ >> >> > >> >> >> > >> >> > >> >> >> > On 18 nov, 12:54, Yaw Anokwa wrote: >> >> >> you can use the calculate tag to combine values from a few instances >> >> >> to create the code field. you can then show that field as the value of >> >> >> an input instance, copy that value, and paste it wherever. the catch >> >> >> is that the user could also wipe that value from the code field... >> >> >> >> anyway, the short answer is that yes, it's possible. you may have to >> >> >> tweak 1-2 lines of code to bypass the wiping problem and make the user >> >> >> interaction more elegant. >> >> >> >> On Thu, Nov 18, 2010 at 03:14, Ricardo Cardoso wrote: >> >> >> > I would like to create a code field with some collected data. This >> >> >> > code must be copied in other forms. I think it is necessary to show >> >> >> > the code into a field like textarea. Then, the interviewer can copy >> >> >> > (long-press) and paste in other form. That is possible with Xform for >> >> >> > ODK Collect? >> >> >> >> > -- >> >> >> > Post: opendatakit@googlegroups.com >> >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> >> > -- >> >> > Post: opendatakit@googlegroups.com >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >