Change the width of text entry | Experience Community
Skip to main content
Question

Change the width of text entry

  • Mar 27, 2020 8:58 PM UTC
  • 2 replies
  • 221 views

Hi, i'm using a multiple choice question but when i added a text entry, this box is not of the same width of the button. ¿How can i configure it?

2 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • Feb 23, 2023 3:21 PM UTC

Hi there, if you still need, try adding the below to the question's JavaScript in the OnReady section:
jQuery("#"+this.questionId+" .TextEntryBox").css({"width":"100%"});


Forum|alt.badge.img+19
  • Level 5 ●●●●●
  • Apr 18, 2023 7:26 PM UTC

The custom code should work. You can also simply click and drag to resize in the interface: