# Inline Form A Example of inline form. ```html Validate
{{  JSON.stringify(formValue, 0, 2) }}
``` ```js export default { data () { return { size: 'medium', formValue: { user: { name: '', age: '' }, phone: '' }, rules: { user: { name: { required: true, message: 'Please input your name', trigger: 'blur' }, age: { required: true, message: 'Please input your age', trigger: ['input', 'blur'] } }, phone: { required: true, message: 'Please input your number', trigger: ['input'] } } } }, methods: { handleValidateClick (e) { e.preventDefault() this.$refs.form.validate(errors => { if (!errors) { this.$NMessage.success('Valid') } else { console.log(errors) this.$NMessage.error('Invalid') } }) } } } ```