Controlling Form wizard textbox size

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
5/7/2011 5:06:13 AM
Gravatar
Total Posts 33

Controlling Form wizard textbox size

I am using form wizard for data entry. However when the form wizard controls are placed in the left pane of the page, they are encroaching the center pane and make the looks ugly because of the text box size. How can we control the text box size in the form wizard.

Also,can some one help me how to use a separate css for customizing the form wizard module/feature on a page. I would prefer to have customization done in a separate css file and placed in skin folder or some relevant folder. Though I see the settings about giving the css name but not sure how to use it. Any detailed steps of creating and using separate css would be of great help.

5/7/2011 7:12:06 AM
Gravatar
Total Posts 18439

Re: Controlling Form wizard textbox size

There are 2 ways to solve this problem.

1. You could make the Form Wizard inputs smaller. You can go into the settings for the Form Wizard and specify a custom CS Class for the outer container, for example you enter "customclass", then in CSS you can control text box width like this:

.customclass .qtext input { width:100px; }

2. You could make the side column wider on that page.

In the next release of Form Wizard Pro we will also have the ability to use custom CSS classes per question so that you can make the inputs have different widths or styles per question.

See also

CSS Its All About Understanding Selectors

Hope that helps,

Joe

5/7/2011 9:04:47 AM
Gravatar
Total Posts 33

Re: Controlling Form wizard textbox size

Tried the first option, but it didn't help. I need to make the whole container width less so that the textboxes and paragraph box sizes becomes less.

Steps followed.

1. Went to settings of the forms wizard instance and gave a name "mycustomclass".

2. Then went ahead in the style.css file and included the below at the very bottom

.mycustomclass .qtext input { width:100px; }

 

that didn't work.

also tried out in styleformwizard.css

that didn't work too.

Did I follow the steps correctly.

I am confused to where exactly I need to edit the css, is it style.css file or styleformwizard.css file?

And for the second way of doing, I didn't see an option for specifying css class name in the page settings (Home page)

My current situation is to reduce the textbox and paragraph size and then the form questions container size as well into the left pane of home page.

5/7/2011 9:14:30 AM
Gravatar
Total Posts 18439

Re: Controlling Form wizard textbox size

if you want to control the width of the container then just do this:

.mycustomclass { width: 200px; }

Again, if you master CSS selectors you will be able to figure this stuff out for yourself. 

You can organize the CSS however you like in terms of which files you put things in, the only thing you have to keep in mind is that when they are combined they are combined in the sequence that the files are listed in style.config and this affects the specificity of a style rule. A style rule lower in the CSS will override a rule higher in the CSS.

You could create a new file mycustom.css and include it in the bottom of style.config if you want to.

Hope that helps,

Joe

5/7/2011 9:16:58 AM
Gravatar
Total Posts 18439

Re: Controlling Form wizard textbox size

The per page CSS classes were added in mojoPortal 2.3.6.4. If you have an older version it is not possible without upgrading.

5/7/2011 9:22:14 AM
Gravatar
Total Posts 18439

Re: Controlling Form wizard textbox size

Actually the paragraph is contained in a div with the class settingrow and this may be what makes it too wide so you may need to do something like this:

.mycustomclass .settingrow { width: 200px; }

style can be inherited from mutliple CSS selectors so one needs to learn to use the Firebug plugin or IE developer tools or Chrome element inspector or things like that as they can show which style rules are coming from which selectors and this gives you the idea of what you need to override on more specific selectors.

Hope it helps,

Joe

5/7/2011 12:15:40 PM
Gravatar
Total Posts 33

Re: Controlling Form wizard textbox size

Thanks Joe, that really helped.

You must sign in to post in the forums. This thread is closed to new posts.