cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <html>
<head>
  <meta charset="UTF-8">
  <title>formrun.js - Error Popup</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/css/bootstrap.min.css" integrity="sha384-MIwDKRSSImVFAZCVLtU0LMDdON6KVCrZHyVQQj6e8wIEJkW4tvwqXrbMIya1vriY" crossorigin="anonymous">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.slim.min.js" crossorigin="anonymous"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/js/bootstrap.min.js" integrity="sha384-ux8v3A6CPtOTqOzMKiuo3d/DomGaaClxFYdCu2HPMBEkf6x2xiDyJ7gkXU0MWwaD" crossorigin="anonymous"></script>
  <script src="https://sdk.form.run/js/v2/formrun.js"></script>
</head>
<body>

<div class="container">
  <h1>formrun.js <small> - Error Popup</small></h1>

  <div class="card">
    <h3 class="card-header">ポップアップ表示</h3>

    <div class="card-block">
      <form class="formrun" action="#" method="get" data-formrun-popup>
        <div class="form-group"
            data-formrun-class-if-success="has-success" data-formrun-class-if-error="has-danger" data-formrun-target="お名前">
          <label class="form-control-label" for="name">お名前</label>
          <input type="text" class="form-control" id="name" name="お名前"
                data-formrun-required data-formrun-class-if-success="form-control-success" data-formrun-class-if-error="form-control-danger">
        </div>

        <div class="form-group"
            data-formrun-class-if-success="has-success" data-formrun-class-if-error="has-danger" data-formrun-target="お問い合わせ">
          <label class="form-control-label" for="body">お問い合わせ</label>
          <textarea class="form-control" id="body" name="お問い合わせ"
                    data-formrun-required data-formrun-class-if-success="form-control-success" data-formrun-class-if-error="form-control-danger"></textarea>
        </div>

        <fieldset class="form-group row">
          <span class="col-sm-2">性別</span>
          <div class="col-sm-10">
            <label class="form-check-label form-check-inline">
              <input class="form-check-input" type="radio" name="性別" value="男性" data-formrun-required>
              男性
            </label>
            <label class="form-check-label form-check-inline">
              <input class="form-check-input" type="radio" name="性別" value="女性" data-formrun-required>
              女性
            </label>
          </div>
        </fieldset>

        <div class="form-group row">
          <label class="col-sm-2">業種</label>
          <div class="col-sm-10">
            <select class="form-control form-control-lg" name="業種" data-formrun-required>
              <option value>--選択してください--</option>
              <option value="IT">IT</option>
              <option value="メーカー">メーカー</option>
              <option value="商社">商社</option>
              <option value="医療">医療</option>
              <option value="金融">金融</option>
              <option value="建設・不動産">建設・不動産</option>
              <option value="金融">金融</option>
              <option value="人材">人材</option>
              <option value="小売">小売</option>
              <option value="飲食">飲食</option>
              <option value="物流">物流</option>
              <option value="その他">その他</option>
            </select>
          </div>
        </div>

        <div class="form-group row">
          <div class="col-sm-10 offset-sm-2">
            <div class="form-check">
              <label class="form-check-label">
                <input class="form-check-input" type="checkbox" name="個人情報保護方針に同意" data-formrun-required> <a>個人情報保護方針</a>に同意します
              </label>
            </div>
          </div>
        </div>

        <button type="submit" class="btn btn-primary pull-xs-right" data-formrun-error-text="未入力の項目があります" data-formrun-submitting-text="送信中...">送信</button>
      </form>
    </div>
  </div>

  
</div><!-- /.container -->

</body>
</html>


            
          
!
999px
Loading ..................

Console