This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pipeline = []; | |
pipeline.push({ | |
'$match': { | |
'form': {$in: ['23234234234234423', '234234234234234234']} | |
} | |
}); | |
pipeline.push({ | |
'$match': { | |
'$or': [ | |
{'data.firstName': 'Travis'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fbScope = angular.element('#form-builder').scope(); | |
fbScope.formComponentGroups.existing = { | |
title: 'Existing Fields', | |
panelClass: 'subgroup-accordion-container', | |
subgroups: {} | |
}; | |
fbScope.formComponentsByGroup.existing = { | |
'firstName': { | |
type: 'textfield', | |
key: 'firstName', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create formio; | |
docker run -itd \ | |
--name minio \ | |
--network formio \ | |
-p 9000:9000 \ | |
minio/minio server /data; | |
docker run -itd \ | |
-e "FORMIO_PROJECT=[FORM.IO PROJECT ID]" \ | |
-e "FORMIO_PROJECT_TOKEN=[FORM.IO PROJECT TOKEN]" \ | |
-e "FORMIO_PDF_PROJECT=[FORM.IO PDF PROJECT URL]" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { FormioService } from 'ng2-formio'; | |
@Component({ | |
template: '<formio *ngIf="form" form="[form]" (submit)="onSubmit($event)"></formio>' | |
}) | |
export class FormioFormExample { | |
public form: object; | |
public service: FormioService; | |
constructor() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code does require our Docker deployment where the "JWT_SECRET" would be the | |
* same secret of the environment variable when the docker is spun up. | |
*/ | |
var jwt = require('jsonwebtoken'); | |
var token = jwt.sign({ | |
external: true, | |
form: { | |
_id: '59795d259be16e3ee58fddaa', | |
project: '59795d259be16e3ee58fdda6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Person", | |
"display": "form", | |
"type": "form", | |
"name": "person", | |
"path": "person", | |
"components": [ | |
{ | |
"type": "textfield", | |
"input": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name": "Afghanistan", "code": "AF", "flagged": true}, | |
{"name": "land Islands", "code": "AX"}, | |
{"name": "Albania", "code": "AL"}, | |
{"name": "Algeria", "code": "DZ"}, | |
{"name": "American Samoa", "code": "AS"}, | |
{"name": "AndorrA", "code": "AD"}, | |
{"name": "Angola", "code": "AO"}, | |
{"name": "Anguilla", "code": "AI"}, | |
{"name": "Antarctica", "code": "AQ"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre><code id="json"></code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BaseComponent } from './Base'; | |
import { Formio } from 'formiojs/full'; | |
export class CustomComponent extends BaseComponent { | |
constructor(component, options, data) { | |
super(component, options, data); | |
} | |
} | |
Formio.registerComponent('custom', CustomComponent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var workflow = new FormioWizard(document.getElementById('workflow')); | |
workflow.form = { | |
components: [ | |
{ | |
type: 'hidden', | |
key: 'score', | |
input: true, | |
defaultValue: 0, | |
calculateValue: { | |
"+": [ |