R
R
RushV2020-09-06 08:27:51
MODX
RushV, 2020-09-06 08:27:51

How to write select output of ms2Form?

Hello!
Where to write variables in select for frontend?
If I use tv fields for example tv1.

<div class="form-group">
    <label for="exampleFormControlSelect1">Example select</label>
    <select class="form-control" id="exampleFormControlSelect1">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
    </select>
  </div>


And which one to choose "Input type" in the tv settings?
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2020-09-08
@DanArst

A bit confusing, do you want to add your select type field to the ms2form?
If so, then you just need to create a TV (for example, mySelect) with a list input type (single selection) and add the &allowFields=`mySelect` parameter in the ms2from call

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question