Standalone - set default value to active
authorWilliam Mortada <williammortada@thirdsectordesign.org>
Sat, 2 Dec 2023 18:07:24 +0000 (18:07 +0000)
committerWilliam Mortada <williammortada@thirdsectordesign.org>
Sat, 2 Dec 2023 18:09:41 +0000 (18:09 +0000)
ext/standaloneusers/ang/afformEditRole.aff.html

index 0af704bf358dcf8757401ffca09216ff53ee6f6e..e5e795c8d2582ee97896516090176f6f549b571a 100644 (file)
@@ -4,7 +4,7 @@
     <af-field name="name" />
     <af-field name="label" />
     <af-field name="permissions" />
-    <af-field name="is_active" />
+    <af-field name="is_active" defn="{afform_default: '1', input_attrs: {}}" />
   </fieldset>
   <button class="af-button btn btn-primary" crm-icon="fa-check" ng-click="afform.submit()">Submit</button>
 </af-form>