-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documented prompt Text area #80
Conversation
@@ -388,6 +388,21 @@ The following prompt types are available in ODK-X Survey. | |||
| like to enter. | |||
* - video | |||
- | Used to capture a video. | |||
* - Text Area | |||
- | Used to allow the user to write upto 255 characters set by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect, the text area provides a big text area for users to enter information. The note should be if you anticipate users writing anything longer than 255 characters you need to change the model sheet and change the elementType column. As the documentation states: "For example, as shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len)." https://docs.odk-x.org/xlsx-converter-reference/#model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This statement was confusing ...
@@ -393,7 +393,7 @@ The following prompt types are available in ODK-X Survey. | |||
|
|||
.. note:: | |||
|
|||
To increase the length for a string, you could add a model sheet to your xlsx workbook and set the elementType to be string(<string_length>).For example, if you had a string | |||
To increase the length for a string, you could add a model sheet to your xls workbook and set the element-type to be string(<string_length>).For example, if you had a string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is typically an xlsx workbook. There also needs to be a space between the period and For example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elmps2018 I have written xlsx workbook only but then it is not passing the build
@@ -388,6 +388,21 @@ The following prompt types are available in ODK-X Survey. | |||
| like to enter. | |||
* - video | |||
- | Used to capture a video. | |||
* - Text Area | |||
- | Used to allow the user to write upto 255 characters set by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo "upto" should be "up to." Also not clear how this is different from text/string. Would be good to follow their model, e.g.:
"Used to ask the user a question and allows them to enter text." but then add something like "..to enter text in a text box," (if that is what the prompt does).
|
||
.. note:: | ||
|
||
To increase the length for a string, you could add a model sheet to your xls workbook and set the element-type to be string(<string_length>).For example, if you had a string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xlsx workbook
Not sure why this note is with the text area. Is text area a string prompt? Unclear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, The text area is a string prompt, as we can not write after covering 255 characters.
@@ -392,7 +392,7 @@ The following prompt types are available in ODK-X Survey. | |||
- | Used to enter the information in a big text area or pragraphs. | |||
|
|||
.. note:: | |||
if users anticipates for writing anything longer than 255 characters then the user need to change the model sheet and change the elementType column. As the documentation states: "For example, as shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len)". For example, if you had a string prompt named long_data that you wanted to be 500 characters, you would add the following to your model worksheet. | |||
if users anticipates for writing anything longer than 255 characters then the user need to change the model sheet and change the element-type column. As the documentation states: "For example, as shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len)". For example, if you had a string prompt named long_data that you wanted to be 500 characters, you would add the following to your model worksheet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least in the current documentation, the column is named elementType, not "element-type" so I think this change may be incorrect...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I have written "elementType" only but the build is not passing. That shows it as spelling error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can add the word to https://github.com/odk-x/docs/blob/master/odkx-src/spelling_wordlist.txt and the spell checker will recognize it (there is an issue already to document this that someone is working on odk-x/tool-suite-X#247)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wbrunette I have added the word and made the PR for that #82 please review that
- | Used to enter the information in a big text area or pragraphs. | ||
|
||
.. note:: | ||
if users anticipates for writing anything longer than 255 characters then the user need to change the model sheet and change the elementType column. As the documentation states: "For example, as shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len)". For example, if you had a string prompt named long_data that you wanted to be 500 characters, you would add the following to your model worksheet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the rest of the changes! But I think this is weird: "As the documentation states: "For example, as shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len)". as this IS the documentation so seems weird. That was my comment to you to help you update your pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for documenting this.
@@ -388,6 +388,19 @@ The following prompt types are available in ODK-X Survey. | |||
| like to enter. | |||
* - video | |||
- | Used to capture a video. | |||
* - Text Area |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the identifier for the prompt type, which is textarea
.
@@ -388,6 +388,19 @@ The following prompt types are available in ODK-X Survey. | |||
| like to enter. | |||
* - video | |||
- | Used to capture a video. | |||
* - Text Area | |||
- | Used to enter the information in a big text area or pragraphs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pragraphs
paragraphs
- | Used to enter the information in a big text area or pragraphs. | ||
|
||
.. note:: | ||
if users anticipates for writing anything longer than 255 characters then the user needs to change the model sheet and change the elementType column. It is shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len). For example, if you had a string prompt named long_data that you wanted to be 500 characters, you would add the following to your model worksheet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful to link to the model section.
@khushishikhu I reviewed and merged the spelling list changes. |
@elmps2018 The words are being added, but still build isn't passing |
@khushishikhu not sure why this is still not passing after the spelling merged... @wbrunette or @linl33 any ideas? |
@khushishikhu you need to merge your changes to ODK-X master into your current branch to get the updated code in it. @khushishikhu and @elmps2018 the simpler process is to add your spelling change into the pull request you are proposing so that it is automatically incorporated into the build. At this point you need to peform a merge from ODK-X master into your branch to avoid any conflicts later. |
@khushishikhu remember you can run the build commands locally on your computer so you don't have to keep pushing small commits. Instead of just running odkx-autobuild there are more commands: https://github.com/odk-x/docs#build-tasks |
@wbrunette yes sure!! I will take care of this thing from next time. Now the build is passing. |
|
||
* - | name | ||
- | type | ||
- | element type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be elementType
- | Used to enter the information in a big text area or paragraphs. | ||
|
||
.. note:: | ||
if users anticipates for writing anything longer than 255 characters then the user needs to change the model sheet and change the elementType column. It is shown in the datatypes XLSX, string variables' length can be adjusted from a default of 255 to other lengths with string(len). For example, if you had a string prompt named long_data that you wanted to be 500 characters, you would add the following to your model worksheet. To know more refer to https://docs.odk-x.org/xlsx-converter-reference/#model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a ref
to link to that section. https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-arbitrary-locations
closes odk-x/tool-suite-X#152
addresses odk-x/tool-suite-X#152
What is included in this PR?
It includes the prompt for the text area if we go above 255 characters. I have added the way to increase the character limit by adding the note there
What is left to be done in the addressed issue?
Please tell me if I left anything or what more it requires.
Thank you!!