Round Cornes - Text Entry Box | XM Community
Skip to main content
Question

Round Cornes - Text Entry Box

  • October 13, 2023
  • 11 replies
  • 83 views

Forum|alt.badge.img+5

Hi Everyone

I have 3 text entry boxes that I would like to round the corners on.

Any ideas?

Thanks :)

11 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • October 13, 2023

Paste the below code at each question where we need round corners:

jQuery("#"+this.questionId+" input[type='text']").css("border-radius","10px");
jQuery("#"+this.questionId+" textarea").css("border-radius","10px");

 


Forum|alt.badge.img+5
  • Author
  • Level 5 ●●●●●
  • 157 replies
  • October 13, 2023

Thanks for getting back to me but this did not work.

This is what I have.

Thanks :)


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • October 13, 2023

You did not add below line:

jQuery("#"+this.questionId+" textarea").css("border-radius","10px");

 


Forum|alt.badge.img+5
  • Author
  • Level 5 ●●●●●
  • 157 replies
  • October 13, 2023

I did this time, but still the same.

 


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • October 13, 2023

Did you paste the code in the JS of text entry question?


Forum|alt.badge.img+5
  • Author
  • Level 5 ●●●●●
  • 157 replies
  • October 13, 2023

I did…. Hope you can help.


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • October 13, 2023

Try this:

jQuery("#"+this.questionId+" .InputText").css("border-radius","10px");

 


Forum|alt.badge.img+5
  • Author
  • Level 5 ●●●●●
  • 157 replies
  • October 13, 2023

Still the same.

Could it be to do with my CSS?

#QID119 .QuestionText {
  padding: 25px !important;
  border-radius: 10px !important;
}
ul {
    margin-block-end: -0px;


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • October 13, 2023

Which theme and layout are you using?


Forum|alt.badge.img+5
  • Author
  • Level 5 ●●●●●
  • 157 replies
  • October 13, 2023

Custom theme and flat layout.


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1096 replies
  • October 15, 2023

@parkie_0007 Try this in your custom CSS

.Skin .TE .SL .InputText, .Skin .TE .ML .InputText, .Skin .TE .ESTB .InputText, .Skin .TE .PW .InputText, .Skin .TE .FORM .InputText, .Skin .MC .TextEntryBox, .Skin input.TextEntryBox, .Skin .TE textarea, .Skin textarea, .Skin input[type=password], .Skin input[type=text], .Skin input[type=search] {
border-radius: 10px !important;
}