selectedreferenceid != null ? $record->selectedreferenceid : "null" }}, selectFilterBy: {{ isset($record) && $record->filterby != null ? $record->filterby : "null" }}, typeOptions: [], filterOptions: {{ json_encode($filterFields) }}, updateSelectedRecordTypes(id) { if (this.selectedRecordTypes.includes(id)) { const index = this.selectedRecordTypes.indexOf(id); this.selectedRecordTypes.splice(index, 1); } else { this.selectedRecordTypes.push(id); } this.selectAll = this.selectedRecordTypes.length === this.recordTypes.length; }, updateTypeOptions() { if (this.contentType === 13 || this.contentType === '13' || this.contentType === 15 || this.contentType === '15') { this.typeOptions = {{ json_encode($listRecords) }}; } else if (this.contentType === 19 || this.contentType === '19') { this.typeOptions = {{ json_encode($recordTypes) }}; } else { this.typeOptions = []; } }, typeChanged($id) { this.updateTypeOptions(); if($id == '19') { $dispatch('setrefid', this.typeOptions[0]['id']); } else { this.selectFilterBy = null; } $dispatch('contenttype', $id); }, recTypeChanged($id) { $dispatch('setrefid', $id); } }" x-init=" updateTypeOptions(), $nextTick(() => { $dispatch('contenttype', contentType); $dispatch('refid', selectRecordType); }) " > @if($showform)
@if(isset($record) && !$create) @endif @csrf @else {{--
--}} @endif
{{-- Form section --}}

General Information

Configure your field settings for your form field.

@if($showform) @else
{{ isset($record) ? $record->title : '' }}
@endif
@if($showform) @else
{{ isset($record) ? $record->label : '' }}
@endif
@if($showform) @else
{{ isset($record) ? $record->contentType->name : '' }}
@endif
@if($showform) @if(!$admin && $create) custfield @endif @else
{{ isset($record) ? $record->scriptid : '' }}
@endif
@if($showform) @else @if(isset($record) && ($record->content_type == '13' || $record->content_type == '19' || $record->content_type == '15')) @php if($record->content_type == '13' || $record->content_type == '15'){ $referenceTitle = $listRecords->where('id', $record->selectedreferenceid)->first(); } if($record->content_type == '19'){ $referenceTitle = $recordTypes->where('id', $record->selectedreferenceid)->first(); } @endphp @if($referenceTitle)
{{ $referenceTitle->title }}
@endif @endif @endif
@if($showform) @else @if(isset($record) && $record->content_type == '19') @php if($record->content_type == '19'){ $filterTitle = $filterFields->where('id', $record->filterby)->first(); } @endphp @if($filterTitle)
{{ $filterTitle->title }}
@else
NA
@endif @endif @endif
{{--
--}}
{{-- Form section --}}

Record Types

Choose the record types you'd like this field applied to.

@foreach($recordTypes as $option)
@endforeach @if($showform)
@endif
{{-- Form section --}}

Validation Rules

Apply optional validation rules to your form field.

@if($showform) @else @endif
@if($showform) @else
{{ isset($record) ? $record->minvalue : '' }}
@endif
@if($showform) @else
{{ isset($record) ? $record->maxvalue : '' }}
@endif
{{-- Form section --}}
@if($showform)
@if(isset($record)) Cancel @else Cancel @endif @if(isset($record)) @if($admin || !$admin && $record->id > 0) @if($create) @else @endif @if(!isset($record)) @endif @endif @else @if($create) @else @endif @if(!isset($record)) @endif @endif
@else
{{-- @if(!$admin && $record->id < 0) Customize @else --}} @if($admin || !$admin && $record->id > 0) Edit @endif
@endif