File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export async function POST(request: Request) {
4141 yearsOfExperience,
4242 qualifications,
4343 registrationRoute,
44+ fieldConcerns,
4445 } = body as {
4546 email ?: string
4647 name ?: string
@@ -51,6 +52,7 @@ export async function POST(request: Request) {
5152 yearsOfExperience ?: string
5253 qualifications ?: string
5354 registrationRoute ?: string
55+ fieldConcerns ?: string
5456 }
5557
5658 if ( ! email || typeof email !== 'string' ) {
@@ -76,6 +78,7 @@ export async function POST(request: Request) {
7678 yearsOfExperience : str ( yearsOfExperience ) ,
7779 qualifications : str ( qualifications ) ,
7880 registrationRoute : str ( registrationRoute ) ,
81+ fieldConcerns : str ( fieldConcerns ) ,
7982 } )
8083 try {
8184 const googleRes = await fetch ( `${ scriptUrl } ?${ params . toString ( ) } ` )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export default function NewsletterForm() {
1313 yearsOfExperience : '' ,
1414 qualifications : '' ,
1515 registrationRoute : '' ,
16+ fieldConcerns : '' ,
1617 }
1718 const [ formData , setFormData ] = useState ( initialFormData )
1819 const [ agreedToTerms , setAgreedToTerms ] = useState ( false )
@@ -257,6 +258,22 @@ export default function NewsletterForm() {
257258 </ select >
258259 </ div >
259260
261+ < div className = "mb-6" >
262+ < label className = "mb-2 block text-sm font-medium text-gray-700" >
263+ 現場でのお悩み(任意)
264+ </ label >
265+ < textarea
266+ value = { formData . fieldConcerns }
267+ onChange = { ( e ) =>
268+ setFormData ( { ...formData , fieldConcerns : e . target . value } )
269+ }
270+ disabled = { isLoading }
271+ rows = { 3 }
272+ className = "w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-blue-500 disabled:bg-gray-100"
273+ placeholder = "臨床現場で感じているお悩み等"
274+ />
275+ </ div >
276+
260277 < div className = "mb-6" >
261278 < label className = "flex items-start space-x-2" >
262279 < input
You can’t perform that action at this time.
0 commit comments