function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nick KeehanNick Keehan 

Populate InputField with script output

Hey Guys.

I have a page and three group buttons. Each Populates a value {{radioModel}} via a script.

Inputfield wont accept the {{radioModel} output. Is there a way to do this without a Class?

It can populate a <input> value, just not an Apex:Inputfield or Apex:inputText.

Heres my code.

nay help would be apreciated.
 
<body>

<apex:inputField value="{!Object__c.Field__c}" ID="Field__c"/>   
   
{{radioModel}}

    <div class="btn-group">
        <label style="background-color:#22A7F0;color:black;width:33%;height:50px;white-space: normal;" class="btn btn-primary" ng-model="radioModel" uib-btn-radio="'OK" uncheckable="1">OK</label>
        <label style="background-color:#22A7F0;color:black;width:33%;height:50px;white-space: normal;" class="btn btn-primary" ng-model="radioModel" uib-btn-radio="'Great'" uncheckable="1">Great</label>
        <label style="background-color:#22A7F0;color:black;width:33%;height:50px;white-space: normal;" class="btn btn-primary" ng-model="radioModel" uib-btn-radio="'Perfect"  uncheckable="1">Perfect</label>
    </div>


<script>
  angular.module('ui.bootstrap.demo', ['ngAnimate', 'ngSanitize', 'ui.bootstrap']);
  angular.module('ui.bootstrap.demo').controller('ButtonsCtrl', function ($scope) {
  $scope.singleModel = 1;
      });
</script>


</body>

 
Best Answer chosen by Nick Keehan
Nick KeehanNick Keehan
The solution here was to add "html-ng-model="radioModel"" into the input field line. thanks for your help