{"nodes":{"ndqa2j197478yg6o476bqmquc5xt8n4e":{"type":"start","x":0,"y":0,"properties":{"title":"Send a message if a form field is invalid","excerpt":"In this example, I'll show you how to send a message if a form field has been filled out incorrectly.","slug":"","post":"","author":"GraVersal","license":"CC BY 4.0","channel":"chat","category":"Forms","private":false}},"72ad8dduj8xw47bfs6cawk617pne85sa":{"type":"message","x":-286.58451891124025,"y":-27.36017863090163,"properties":{"text":"In this example, I'll show you how to **send a message** if a form field has been **filled out incorrectly**.","repeatOnReentry":true,"repeatOnChance":true}},"waplf0o5asym8zy7qt9tu8h0mtcasfo7":{"type":"message","x":-427.09098114088226,"y":299.57541771384564,"properties":{"text":"I need your **email** address and your **name**, please.","repeatOnReentry":true,"repeatOnChance":true}},"e5q3xjg5ar4olzj8bylsjpnx5hyrmvr0":{"type":"form","x":-431.45529560154273,"y":581.0953992847933,"properties":{"text":"Please fill out this form","reviewable":true}},"a2q5nd5m95gxgm300zzpmezbwmrlftbj":{"type":"input","x":-262.97723070321115,"y":688.8690286561564,"properties":{"name":"name","label":"Name","inputType":"text","required":true}},"wt4hk28bir8k9j7c01205k3sr5crvsos":{"type":"input","x":-367.585704771164,"y":794.8485672087893,"properties":{"name":"email","label":"E-Mail","inputType":"email","required":true}},"xvz4v8m6k96en462fk8rk66qqiheneyl":{"type":"message","x":-777.98896347632,"y":736.7928259139453,"properties":{"text":"Thank you. You have filled in all the fields **correctly**.\n\n* Name: {{values.name}}\n* Email: {{values.email}}","repeatOnReentry":true,"repeatOnChance":true}},"7cmppaj4x5vwgv30k1eqjyd66ow62y12":{"type":"message","x":-366.4842649947484,"y":991.7025936024681,"properties":{"text":"{{#if value}}\n*{{value}}* doesn't look like an **email** address.\n{{else}}\nPlease enter a valid **email** address.\n{{/if}}","repeatOnReentry":true,"repeatOnChance":true}},"tfmtcbphqzdz89lh825t7lbm3xl9lyea":{"type":"message","x":-141.99302255327032,"y":942.8890683554233,"properties":{"text":"Please enter a **name**","repeatOnReentry":true,"repeatOnChance":true}},"t1299kc30o27l2nmothair0ncxia8q1q":{"type":"message","x":-459.83444473492045,"y":93.97057324407248,"properties":{"text":"Feel free to experiment with **empty fields** and **incorrect** email addresses.","repeatOnReentry":true,"repeatOnChance":true}},"aralrniozjr7zh6zcvtzmbyecyabskwb":{"type":"submit","x":-561.7585951528795,"y":776.0799060070575,"properties":{"label":"Submit"}}},"edges":{"gmq21qo0yvnmxo9d7swrd2ex0d851vhy":{"type":"may","from":"ndqa2j197478yg6o476bqmquc5xt8n4e","to":"72ad8dduj8xw47bfs6cawk617pne85sa","properties":{"priority":4}},"uhcesjgsl1jsigcoxrh7jnpzd1dviq45":{"type":"may","from":"waplf0o5asym8zy7qt9tu8h0mtcasfo7","to":"e5q3xjg5ar4olzj8bylsjpnx5hyrmvr0","properties":{"priority":4,"condition":"arrived"}},"8yqibfayh79vv6yim3oxhkf7chmsbfo0":{"type":"may","from":"e5q3xjg5ar4olzj8bylsjpnx5hyrmvr0","to":"a2q5nd5m95gxgm300zzpmezbwmrlftbj","properties":{"priority":6,"condition":""}},"nig49clutxkuax8ib7viv9p9a9leg249":{"type":"may","from":"e5q3xjg5ar4olzj8bylsjpnx5hyrmvr0","to":"wt4hk28bir8k9j7c01205k3sr5crvsos","properties":{"priority":5,"condition":""}},"l2uixi2nc69nxosl6rm9ied79k8efsg0":{"type":"may","from":"e5q3xjg5ar4olzj8bylsjpnx5hyrmvr0","to":"xvz4v8m6k96en462fk8rk66qqiheneyl","properties":{"priority":4,"condition":"send and valid","push":"values"}},"dix7ewjjpr63od2g7qfz485kcyz8wrx6":{"type":"may","from":"wt4hk28bir8k9j7c01205k3sr5crvsos","to":"7cmppaj4x5vwgv30k1eqjyd66ow62y12","properties":{"priority":4,"condition":"invalid","push":"value"}},"omwsgji46cif1r3qgm492y95tqwdwpi2":{"type":"may","from":"a2q5nd5m95gxgm300zzpmezbwmrlftbj","to":"tfmtcbphqzdz89lh825t7lbm3xl9lyea","properties":{"priority":4,"condition":"invalid"}},"fh8x0zetqi5qjmtmrnnisod50g1m1dcd":{"type":"may","from":"72ad8dduj8xw47bfs6cawk617pne85sa","to":"t1299kc30o27l2nmothair0ncxia8q1q","properties":{"priority":4,"condition":"arrived"}},"kxmlsjwt1cj4cs0x1oe12swhqgvr0bxx":{"type":"may","from":"t1299kc30o27l2nmothair0ncxia8q1q","to":"waplf0o5asym8zy7qt9tu8h0mtcasfo7","properties":{"priority":4,"condition":"arrived"}},"60cl462qem32z2jw4gs791mpkh2gdu37":{"type":"may","from":"e5q3xjg5ar4olzj8bylsjpnx5hyrmvr0","to":"aralrniozjr7zh6zcvtzmbyecyabskwb","properties":{"priority":4,"condition":""}}}}