• Resolved blsn

    (@blsn)


    I use the plugin to generate a form.
    Tested on localhost and it works fine with Salesforce.

    How can I style the form with two fields in a row?

    Is it possible to put two fields of that form in a <div>?

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    No, you can’t wrap fields without some tricky filtering of the form HTML.

    However, it’s pretty easy to float them into columns with CSS:

    
    .salesforce_w2l_lead .sf_field{
    display: inline-block;
    width: 50%;
    }
    
    .salesforce_w2l_lead .w2linput.text, .salesforce_w2l_lead .w2linput.textarea{
    width: 90%;
    }
    
    

    I’m thinking of adding a 2 column layout as a form option… at some point.

Viewing 1 replies (of 1 total)

The topic ‘Styling the form’ is closed to new replies.