Support Forums

Questions about surveying? How does this thing work? We're here to help!

The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.

Current User: Guest

“Other” Title Does Not Respect Template Width

Topic Locked
UserPost

12:57
November 7, 2008


johny

Member

johny

posts 84

The title of an “Other” option, in a Multiple Selection question, does not respect the Template Width % setting on the Look & Feel page.

As a result, the “Other” title disappears off the edge of my iFrame.

3:01
November 7, 2008


brittany

Admin

Boulder, Colorado

posts 219

Hi Johny,

Try making the width of your iFrame a little larger and you should be able to see it.

Thanks!

Brittany

- Brittany Heidtke, SurveyGizmo

3:15
November 7, 2008


johny

Member

johny

posts 84

hi brittany

i set my iframe width to a narrow width, in pixels. the whole survey displays with the narrower width, EXCEPT the 'other' option. it does not wrap. the 'other' option should wrap.

in fact, the 'other' textbox does not respect the width either– it extends to the right, beyond the edge of the rest of the survey.

here's the link:

http://laptopacademy.net/wordpress/contact

here's my iframe code:

<iframe src=”http://laptopacademy.contact.sgizmo.com/” style=”overflow: hidden” allowtransparency=”true” frameborder=”0″ height=”1050″ scrolling=”no” width=”425px” onload=”scrollUp()”></iframe>

thanks

4:53
November 7, 2008


brittany

Admin

Boulder, Colorado

posts 219

HI Johny,

Because the text box is a table it won't work. But you can go into the question and limit the box size (the width and height of the box), and although you limit it, if people write longer it will still collect their information.

Hope that helps!

Brittany

- Brittany Heidtke, SurveyGizmo

4:59
November 7, 2008


johny

Member

johny

posts 84

that does not address the issue of the title of the 'other' option.

and, if other textboxes in the survey respect the parent width, so should an 'other' textbox.

5:10
November 7, 2008


brittany

Admin

Boulder, Colorado

posts 219

Hi Johny,

Ok I think I have a fix (I'm in FireFox and couldn't see anything wrong, but I'm assuming you're using IE).  Anyways, if you go back into look & feel and use pixels instead of % you should be good to go.

Thanks!

Brittany

- Brittany Heidtke, SurveyGizmo

6:03
November 7, 2008


johny

Member

johny

posts 84

are you sure you're not seeing it? i'm seeing the problem in ie, firefox, and chrome. try making your browser font size larger and smaller, and see if you cant see the problem.

(for the sake of my website, I applied the textbox-width fix, so you won't be able to see the problem on my live site anymore. but you can see it in the image below)

your solution to change the template width to pixels didn't work, unfortunately. i changed my look & feel template width to 200px; all text but the 'Other' title respected the new width, as you can see:

SurveyGizmoWidth.png

your solution to change the textbox width was the solution, actually. i'm not sure how i feel about that–


  • shouldn't textbox width's be over-ridden by the global template width? is there an configuration option someplace for that?
  • even if not, shouldn't option title text respect the template width, rather than the textbox width?

i found a possible solution. i put a style directly into the question title, according to the technique i posted here. here's the tag i inserted into the 'other' title:

<div style=”width:95%;”>it worked. the 'other' title width adhered to the embedded div instead of the textbox width, even when the textbox was wider.

but i don't like this method, because i would have to separately handle every single 'other' title in my survey, manually. 

another possible solution is to put a global style into the look and feel style sheet. but i don't know how to refer to 'other' titles. perhaps you could help me with that. 

ideally, i could put some code into the style sheet that refers to the template width, rather than specifying the width absolutely. that way, i could say “other titles and textboxes, width = template width”

i guess, if i could specify in css, that textboxes are limited to the template width, then i would not have to handle the titles at all, because they would automatically be limited to the textbox width, as now.

i'm guessing the current behavior affects the text connected to all textboxes, not just 'other' textboxes.

9:57
November 7, 2008


brittany

Admin

Boulder, Colorado

posts 219

Looks like you found a solution that works for you!

Thanks,

Brittany

- Brittany Heidtke, SurveyGizmo

10:38
November 7, 2008


johny

Member

johny

posts 84

not quite…


thanks for the textbox explanation. but i'm not quite satisfied with that, because:


  • -it requires manually handling every textbox in my survey, one-at-a-time, anytime i want to change the template pixel width.
  • -it does not recognize percent-widths

So:


  • -how can i use the Look & Feel CSS to set a width for all textboxes (in pixels)? this should be easy in your existing system.
  • -Or better, how can i reference the 'Template Width' in my CSS?
  • -Or, how else could i limit all textboxes to the Look & Feel 'Template Width'?
thanks!

11:09
November 7, 2008


brittany

Admin

Boulder, Colorado

posts 219

  • -how can i use the Look & Feel CSS to set a width for all textboxes (in pixels)? this should be easy in your existing system.

-You can make a CSS rule for the textbox/text areas. It will look something like this

textarea,
.sg_Textbox {
width:50px;
}

  • -Or better, how can i reference the 'Template Width' in my CSS?

The Template width is under the look and feel Other theme options- template width (where you currently have 95%).

-shouldn't textbox width's be over-ridden by the global template width? is there an configuration option someplace for that?

No, because if I set a width on a specific textbox I would want that to override a global setting.  Unfortunately our application is not smart enough to correct a width on a textbox that is larger than a template.

Hope that answered a few of your questions.

Thanks!

Brittany


- Brittany Heidtke, SurveyGizmo

11:37
November 7, 2008


johny

Member

johny

posts 84

thanks for the textarea CSS! that's a big improvement!


but, when i said 'how do i reference Template Width', i meant, how can i refer to the template width in the CSS you gave me. something like this:


textarea,
.sg_Textbox {
width:TEMPLATE_WIDTH;
}

this way, i would only have to change the Template Width, and the size would automatically get applied to all textboxes, via the above CSS.


11:45
November 7, 2008


brittany

Admin

Boulder, Colorado

posts 219

Try using this….
[%%:CustomText_1:Survey Width (Default:600px )%%]

This is pulled from-

#sg_wrapper {
    width:[%%:CustomText_1:Survey Width (Default:600px )%%] !important;
    margin:0 auto;

Within the CSS.  We're not 100% sure what will happen if you refer to it twice, but it's worth a try!

-Brittany

- Brittany Heidtke, SurveyGizmo

12:00
November 8, 2008


johny

Member

johny

posts 84

interesting! 


can you explain it? please answer the followng:


  • -why the square brackets? 
  • -what is %%?
  • -What's CustomText_1?
  • -What's Survey Width?
  • -What's !important; a comment?
i'm guessing the following. please respond:
  • %% is a way to refer to variables. is that standard CSS, or your own syntax?
  • CustomText_1 is a collection. What other collections exist? Are they listed in the API? (i think i signed up for the api, but never received my registration info)
  • Survey Width is a CustomText_1  keyname which pulls from the 'Template Width' setting on the Look & Feel page. What other keynames exist?
  • The Default value gets returned by the entire tag, in case I leave my 'Template Width' setting empty on the Look & Feel page.
So you're saying i should try the following, correct?
textarea,
.sg_Textbox {
width:[%%:CustomText_1:Survey Width (Default:600px )%%];
}
THANKS!!

12:06
November 8, 2008


johny

Member

johny

posts 84

I THINK IT WORKS!


will keep testing….


would be awesome to get your response to the above questions, thank you!

12:39
November 8, 2008


johny

Member

johny

posts 84

Partial solution!


this will make textboxes ALWAYS fit the width of your survey. 


Insert the following code into your CSS, on the Look & Feel page:


textarea,
.sg_Textbox {
width:99%;
}

This works.


Problem: it only affects simple textbox answers. 

it does NOT affect “Other” titles in multiple choice questions.


I THINK they are called sg_Radio_Other, but the following does not work:


textarea,
. sg_Radio_Other{
width:99%;
}

Brittany, why do neither of the above CSS codes affect my “Other” textboxes?


What name should i use instead of sg_Radio_Other to affect “Other” textboxes?


Thanks!



The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.