Serivce Portal Widget add text field

tommyjensen
Giga Expert

I am adding fields to the Shopping cart in the Angular template large_shopping_cart.html

I added a texarea field and this works fine.

<textarea class="form-control" ng-model="c.requesterPhone" ></textarea>

However a textarea is too big a field for my purpose but I cannot figure out how to change it to a simple one line string field. I tried with "<text></text>" but that becomes readonly.

1 ACCEPTED SOLUTION

Inactive_Us1474
Giga Guru

Try below :


<div>${Enter Description :} <input type="text" size="30" placeholder="Enter description" class="form-control" ng-model="c.requesterPhone"/></div>


View solution in original post

7 REPLIES 7

Ujjawal Vishnoi
Mega Sage

Hi Tommy,



Change the class as mentioned below.



<textarea class="form-control input-sm" ng-model="c.requesterPhone" ></textarea>



Hope this helps.



Regards


Ujjawal


Nothing changes with this.


Inactive_Us1474
Giga Guru

Try below :


<div>${Enter Description :} <input type="text" size="30" placeholder="Enter description" class="form-control" ng-model="c.requesterPhone"/></div>