NetTalk Central

Author Topic: New DIV Layout - How do I?  (Read 2161 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
New DIV Layout - How do I?
« on: November 10, 2019, 04:31:51 AM »
Hi

I have tried various option and methods using the "span (prompt/value/comment)" options but cannot achieve to have the field group surrounded by a div.

IOW have a DIV that encapsulates the prompt/entry/comment

This is the generated code:
====================
   <div id="quote_loc__fc_wine_value_prompt_div"  class=" prompt_class">
      <label for="loc__fc_wine_value">Total value ex VAT (ZAR)</label>
   </div>
   <div id="quote_loc__fc_wine_value_value_div"  class=" entry_div_class">
      <input type="text" name="loc__fc_wine_value" id="loc__fc_wine_value" value="" class=" entry_class"  style="width: 7em;" autocomplete="off" data-do="imm" data-form="quote"/>
   </div>   

But am hoping to generate a div around the field pairs
===================================
<div class="form-row">
   <div id="quote_loc__fc_wine_value_prompt_div"  class=" prompt_class">
      <label for="loc__fc_wine_value">Total value ex VAT (ZAR)</label>
   </div>
   <div id="quote_loc__fc_wine_value_value_div"  class=" entry_div_class">
      <input type="text" name="loc__fc_wine_value" id="loc__fc_wine_value" value="" class=" entry_class"  style="width: 7em;" autocomplete="off" data-do="imm" data-form="quote"/>
   </div>   
</div>

or

<div class="form-row">
   <label for="loc__fc_wine_value">Total value ex VAT (ZAR)</label>
   <input type="text" name="loc__fc_wine_value" id="loc__fc_wine_value" value="" class=" entry_class"  style="width: 7em;" autocomplete="off" data-do="imm" data-form="quote"/>
</div>


thanks

Johan




JohanR

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: New DIV Layout - How do I?
« Reply #1 on: November 11, 2019, 03:31:00 AM »
Hi,

Ok,
have made some 'progress'
other fields on the form generate correctly, some don't
So am now investigating and trying to understand what setting generates the surrounding DIV and what does not.

Last on Line, is there a CSS class specified etc...
Only problem is that these 'triggers' could change with subsequent releases unless it is done so by design and not by the current implementation of the DIV form layout.

Is there any help/docs/webinar that might explain how the DIV form layout is generated?


thanks

Johan