Skip to content
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

Add a Image under or above a scale. #547

Open
ascholz81 opened this issue Oct 26, 2015 · 14 comments
Open

Add a Image under or above a scale. #547

ascholz81 opened this issue Oct 26, 2015 · 14 comments

Comments

@ascholz81
Copy link

I have a current need to display an image of a 1 to 10 scale. The image helps to divide the scale so people answer with a reasonable likeness in thought.
1 - 4 = small effort
5 - 7 = medium effort
9 - 10 = large effort

This is easier displayed in a horizontal image as opposed to text. Since scale images are for min/max they won't help here. Currently, I believe the only way to accomplish this is with an instruction step before the scale question. However, I have several questions that use this scale, so showing the instruction step before each one would be tedious.

  1. Is there a way besides ORKInstructionStep to show an image?
  2. Perhaps this could be extended to most question types so that an image may be shown between the question and answer section. This could be helpful in a form step for other reasons than a scale.
@YuanZhu-apple
Copy link
Member

Please check out ORKImageChoiceAnswerFormat

screen shot 2015-10-26 at 11 27 05 am

See Image Choices example in ORKTest App:

screen shot 2015-10-26 at 11 28 45 am

@ascholz81
Copy link
Author

That won't work for my instance. Even though I broke the scale into 3 sections, the client is using the 1 to 10 scale to further break down the estimate of effort. So I still need an instruction image that they don't select as the answer. Since image choice is the answer format the FormItem will need an answer. I know leaving the answer format nil will keep the user from choosing anything.

|---------------|------------------|---------|
1                 5                      8         10
small           medium            large
effort           effort                 effort
(Prettier as an image.)

@umerkhan-apple
Copy link
Member

@ascholz81 I may not be understanding your use case exactly. Though from your description and the scale diagram you drew above, why can't you create use the image choices module to have 3 images? Image 1 = (1-4) Small effort, Image 2 = (5-7) Medium effort, Image 3 = (9-10) Large effort.

@ascholz81
Copy link
Author

The answer must be a value from 1 - 10. I can't use the image approach.

@YuanZhu-apple
Copy link
Member

Have you tried ORKScaleAnswerFormat ?

On Mon, Oct 26, 2015 at 7:11 PM, ascholz81 notifications@github.com wrote:

The answer must be a value from 1 - 10. I can't use the image approach.


Reply to this email directly or view it on GitHub
#547 (comment)
.

@ascholz81
Copy link
Author

Yes, I am using scale answer format to obtain my value. (Sorry I didn't mention that earlier.) I would just like a way to present the image of the scale for easy reference within the same question. Placing an instruction step ahead of it wouldn't be as accessible for the user.

@YuanZhu-apple
Copy link
Member

So you would like to display an image under or above the scale? ehh...

This may not be the same as you want:
screen shot 2015-10-27 at 10 50 06 am

And do you mind to share us the image you would to display on the scale question?

@ascholz81
Copy link
Author

Yes. Above the scale, between the question text and the scale. That is
also why I thought this may be a more base level feature that could be used
on other question types.

On Tue, Oct 27, 2015, 13:49 Yuan Zhu notifications@github.com wrote:

So you would like to display an image under or above the scale? ehh...


Reply to this email directly or view it on GitHub
#547 (comment)
.

@ascholz81
Copy link
Author

I apologize, I can not share the image.

@YuanZhu-apple
Copy link
Member

Something like this?

screen shot 2015-10-28 at 1 26 53 pm

@ascholz81
Copy link
Author

Yes

@YuanZhu-apple
Copy link
Member

Maybe we can add an image beneath the textLabel?

@ltartaglia
Copy link

I've a similar issue. If you implement this feature (add an image beneath the textLabel) you will solve my problem too. Thanks!

@YuanZhu-apple YuanZhu-apple changed the title Image support in questions Add a Image under or above a scale. Mar 9, 2016
@umerkhan-apple
Copy link
Member

#778 #708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants