0

I want to append an image in input field in Demandware...

I am wondering to use style on Demandware's isinputfield tag, can i acheive this in Demandware Templates like on this tag

isinputfield formfield="${pdict.CurrentForms.helloform.nickname}" type="input"

Much Appreciated!

ArK
  • 20,698
  • 67
  • 109
  • 136

1 Answers1

3

isinputfield is a custom ISML tag, implemented in template

{cartridge_name}/cartridge/templates/default/util/inputfield.isml

You can use the parameter rowClass to specify a CSS class for the surrounding div (you can actually see the code that uses this parameter in the template mentioned above)

e.g.

<isinputfield
    formfield="${pdict.CurrentForms.giftcert.purchase.from}"
    rowClass="label-above"
    type="input" />

After that you would need to provide a CSS styling for the class you have applied.

Matt Clark
  • 27,671
  • 19
  • 68
  • 123
Zlatin Zlatev
  • 3,034
  • 1
  • 24
  • 32