• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Can we change the width of one text box?

Can we change the width of one text box? 4 weeks 1 day ago #43358

  • jim55
  • jim55's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
I have created my first form (www.prvlge.com/index.php/appraisal) and wanted to work out how to edit the width of the text boxes. At the bottom of the form you will see I have a box for Additional Comments/Information I wanted to make this box wider so people could see what they had typed in, when they are typing more than a few words. Is it possible to change the width of one box only?

Cheers Jim
Last Edit: 3 weeks 6 days ago by jim55.
The administrator has disabled public write access.

Can we change the width of one text box? 4 weeks 1 day ago #43360

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
Click 'edit' for the comments field and under the attributes tab in additional attributes add style="width:100%;" you can fix the width if you prefer with px or rem
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.
The following user(s) said Thank You: jim55

Can we change the width of one text box? 4 weeks 1 day ago #43361

  • jim55
  • jim55's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
Thanks @iceferret I added the text as suggested but nothing has changed, aside from in the form fields view it is now all the way across the page. However, on the website view it is still a small box. I have tried different numbers in the size box in attributyes but this doesn't seem to change anything.

Any suggestions would be appreciated.

Jim
The administrator has disabled public write access.

Can we change the width of one text box? 4 weeks 1 day ago #43362

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
I.suspect your T4 template is taking precedence, try adding
! important to the style.
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.
The following user(s) said Thank You: jim55

Can we change the width of one text box? 4 weeks 1 day ago #43363

  • jim55
  • jim55's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
sorry for all the dumb questiins. do you mean like this:

style="width:100%;" ! important
The administrator has disabled public write access.

Can we change the width of one text box? 4 weeks 22 hours ago #43364

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
no silly questions, use it like this,

style="width:100%!important;"

As an alternative and to avoid using !important you can add the following in the css/javascript section of the form
<style>
 
#Additional_Comments_-_Information {
	min-width: 55.5rem;
 
</style>
}

on my screen that makes the info box the same width as the state dropdown
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
Last Edit: 4 weeks 22 hours ago by iceferret. Reason: added comment
The administrator has disabled public write access.
The following user(s) said Thank You: jim55

Can we change the width of one text box? 4 weeks 22 hours ago #43365

  • jim55
  • jim55's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
Brilliant that worked a treat. Much appreciate the guidance.
The administrator has disabled public write access.

Can we change the width of one text box? 4 weeks 21 hours ago #43369

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
No problem. You were also asking about making borders darker. using the same principle add the following in the css/javascript area, that should do it for you.
.form-control, .inputbox {
	border: 1px solid #a28f8f;
	}
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.
The following user(s) said Thank You: jim55

Can we change the width of one text box? 4 weeks 11 hours ago #43370

  • jim55
  • jim55's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
Again many thanks for the solution. May I ask is the other question I posted possible? www.rsjoomla.com/forum/37-rsform-pro/324...o-add-a-tickbox.html

I see at the bottom of the page here we have to tick a box so wondered if that is something simple to apply or something that needs a lot more coding?

Cheers Jim
The administrator has disabled public write access.

Can we change the width of one text box? 4 weeks 4 hours ago #43371

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
Using a checkbox group is correct. When you added the group to the form did you put anything in the 'items' field, 'tick this box for example? if there are no items there won't be a box only the caption if you're using one. To link to a terms and conditions article for example (using the correct url for your article) in the items area add the following and in validations make sure it's required.
I have read the <a href="/terms-of-use/">Terms &amp; Conditions</a>
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
Last Edit: 4 weeks 4 hours ago by iceferret.
The administrator has disabled public write access.
The following user(s) said Thank You: jim55

Can we change the width of one text box? 3 weeks 6 days ago #43374

  • jim55
  • jim55's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
Once again thanks that worked a treat and of course makes so much sense now :)

Do I need to mark these all as resolved now?

Jim
The administrator has disabled public write access.

Can we change the width of one text box? 3 weeks 6 days ago #43375

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
Happy to help Jim. Yes, might as well mark them resolved
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.
The following user(s) said Thank You: gregs
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!