How do I make text boxes bigger and wrap text in the edit widget for WAB?

4365
3
Jump to solution
06-08-2016 01:53 PM
CameronJohnsen
New Contributor III


I am trying to make text boxes bigger and wrap text within them for a comments field that will contain a lot of characters. I have found one thread​, I may doing it incorrectly but I doesn't seem to be working. Any help is greatly appreciated.

1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Cameron,

  The web maps attribute configuration take presidence over the setting in the edit widgets config.json. So open the web map in AGOL map viewer and choose to configure popups for your layer and choose the field you want to be multi-line and choose the "Configure Attributes" link and then choose textbox type = Multiple Line. Save your changes and now the edit widget will display that field as a text area in the edit widgets popup. You can then edit the css rule to set the height of all text areas in the edit widgets css rules:

/*textArea*/

.jimu-widget-edit-infoWindow .esriAttributeInspector .dijitTextBox.dijitTextArea {

  height: 32px;

}

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Cameron,

  The web maps attribute configuration take presidence over the setting in the edit widgets config.json. So open the web map in AGOL map viewer and choose to configure popups for your layer and choose the field you want to be multi-line and choose the "Configure Attributes" link and then choose textbox type = Multiple Line. Save your changes and now the edit widget will display that field as a text area in the edit widgets popup. You can then edit the css rule to set the height of all text areas in the edit widgets css rules:

/*textArea*/

.jimu-widget-edit-infoWindow .esriAttributeInspector .dijitTextBox.dijitTextArea {

  height: 32px;

}

CameronJohnsen
New Contributor III

Robert,

Thank you a ton this was the step I was missing.

ChristopherGillett
New Contributor

Hi,

I am also trying to make the text box in an Experience builder edit widget multi line for notes with a lot of characters. I have followed the steps bellow using map viewer classic however it does not seem to be working. I realise this post many years old.

Is their a more up to date solution to making the edit widget text boxes multi line?Multiline_Question_001.PNGMultiline_Question_002.PNG

0 Kudos