title: Get one value from from two different fields (radio, number)
body: <p>I'm looking to collect input from a form as found on this image:</p>
  
  <p><a href="https://i.stack.imgur.com/mTnT1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mTnT1.jpg" alt="freelancer question, radio button and text box"></a></p>
  
  <p>Just like UpWork, I want to get one value from two different fields.</p>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;div class="col-md-6"&gt;
      &lt;label for="PostForm_freelancersToHire" class="required"&gt;How many freelancers do you need for this job?&lt;/label&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-12"&gt;
              &lt;div class="radio"&gt;
                  &lt;label&gt;
                      &lt;input type="radio" data-ng-click="setManyFreelancers(false)" name="hMoreF"  ng-model="oneFreelancer" checked="checked" /&gt;
                      &lt;span class=""&gt;&lt;/span&gt;
                      I want to hire one freelancer
                  &lt;/label&gt;
              &lt;/div&gt;
              &lt;div class="radio"&gt;
                  &lt;label&gt;
                      &lt;input type="radio" data-ng-click="setManyFreelancers(true)" name="hMoreF"  /&gt;
                      &lt;span class=""&gt;&lt;/span&gt;
                      I need to hire more than one freelancer
                  &lt;/label&gt;
              &lt;/div&gt;&lt;!----&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="row" ng-if="hasManyFreelancers"&gt;
          &lt;div class="col-xs-4"&gt;
              &lt;input type="number" name="oneMoreFreelancer" ng-model="oneMoreFreelancer" min="2" class="form-control" /&gt;
          &lt;/div&gt;
          &lt;div class="col-xs-3" style="padding:5px 0 0"&gt;
              &lt;span&gt;Freelancers&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Angular JS:</p>
  
  <pre><code>$scope.setManyFreelancers = function (t) {
      if (t) {
          $scope.hasManyFreelancers = true;
      }
      else {
          $scope.hasManyFreelancers = false;
          // $scope.oneMoreFreelancer = '';
      }
  }
  </code></pre>
  
  <p>Both <code>$scope.oneMoreFreelancer</code> and <code>$scope.oneFreelancer</code> are <code>undefined</code>.</p>
  
  <p>If the first radio is selected, I'd like its value. If the second radio is selected, I'd like the numerical input value. How do I properly fetch this?</p>