# Use it in Form `n-dynamic-input` itself cannot be verified. If you need to verify the input of` n-dynamic-input`, you can pass `n-form-item` in the custom content to complete the verification. Here is a complete example. ```html
{{  JSON.stringify(model.dynamicInputValue, 0, 2) }}
``` ```js export default { data () { return { dynamicInputRule: { trigger: 'input', validator (rule, value) { if (value.length >= 5) return new Error('Input up to four characters') return true } }, model: { dynamicInputValue: [ { key: 0, value: '' } ] } } }, methods: { onCreate () { return { name: '', value: '', /** Generate a key to make the verification information will not be misplaced */ key: Math.random().toString(16).slice(2, 10) } }, /** Since clearing the content of input is an external action, input does not emit events, so form-item cannot get events emitted from input. Therefore, in order to verify the results are synchronized with the displayed values, manual verification is required. `$NextTick` is used to accept this event, the input value has just been placed in the event and has not yet been implemented into the actual value. You need to wait for the next tick to verify the new result. */ handleClear () { this.$nextTick().then( () => this.$refs.form.validate() ) } } } ```