mirror of
https://github.com/grassrootseconomics/farmstar-survey-ui.git
synced 2025-01-09 15:47:32 +01:00
fix: add phone validation to tx survey (closes #5)
This commit is contained in:
parent
b6eec458a0
commit
e0e63aaa19
@ -16,7 +16,8 @@
|
||||
<TextElement
|
||||
name="phone"
|
||||
label="What is your phone number?"
|
||||
rules="required"
|
||||
description="Enter a valid Kenyan phone number starting with 07 or 01 that you registered with."
|
||||
rules="required|phone"
|
||||
/>
|
||||
<SelectElement
|
||||
name="tx"
|
||||
@ -44,13 +45,15 @@
|
||||
<TextElement
|
||||
name="buy"
|
||||
label="Enter the phone number of the counter agent you bought EverGrow from."
|
||||
rules="required"
|
||||
rules="required|phone"
|
||||
description="Enter a valid Kenyan phone number starting with 07 or 01 that you registered with."
|
||||
:conditions="[['tx', 'buy']]"
|
||||
/>
|
||||
<TextElement
|
||||
name="sell"
|
||||
label="Enter the phone number of the customer you sold EverGrow to."
|
||||
rules="required"
|
||||
rules="required|phone"
|
||||
description="Enter a valid Kenyan phone number starting with 07 or 01 that you registered with."
|
||||
:conditions="[['tx', 'sell']]"
|
||||
/>
|
||||
<DateElement
|
||||
|
Loading…
Reference in New Issue
Block a user