Commit aa2111c6 authored by Hellmich, Christoph's avatar Hellmich, Christoph
Browse files

Add element hide function

parent 61ee581d
......@@ -25,10 +25,11 @@ angular.module('ddaApp')
},
{
'fieldName': 'simpleConditional',
'category': '- Development -',
'category': 'Wizard',
'fieldOptions': {
'displayName': 'Conditional',
'hidden': true
'hidden': false,
'nolabel': false
}
},
// {
......
......@@ -20,7 +20,7 @@
<div fg-property-field="fieldHidden" fg-property-field-label="">
<div class="checkbox">
<label title="Set the initial value of this field.">
<input type="checkbox" name="fieldHidden" ng-model="field.hidden"/>
<input type="checkbox" name="fieldHidden" ng-model="field.hidden" ng-change="field.nolabel=field.hidden" />
Hide element in form preview
</label>
</div>
......
<div id="{{ field.$_id }}" class="conditional" ng-class="{ 'hide-condition': field.schema.hidden }">
<div id="{{ field.$_id }}" class="conditional" ng-class="{ 'hidden': field.schema.hidden }">
<span ng-show="field.schema.element.name">If
<ins>{{ field.schema.element.name }}</ins>
has value
......@@ -8,7 +8,7 @@
<span ng-show="field.schema.nextStep.name">go to
<ins>{{ field.schema.nextStep.name }}</ins>
</span>
<span ng-show="!field.schema.hidden">|
<!-- <span ng-show="!field.schema.hidden">|
<i class="fa fa-eye"></i>
</span>
</span> -->
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment