Project

General

Profile

Occupation » History » Version 2

prin methirattanasophon, 02/23/2026 02:43 AM

1 1 prin methirattanasophon
# Occupation
2 2 prin methirattanasophon
3
Description: The form section collects information related to education, occupation, and source of income. This form is designed as a dynamic form that adjusts its fields based on the occupation type selected by the user.
4
5
Page Route: /onboarding/occupation
6
7
Data source: Initialization fields dropdown
8
 - localStorage: member_id
9
 - https://zvn-web-storage-dev.s3.ap-southeast-1.amazonaws.com/onboarding-web/constants/occupation.json
10
 - https://zvn-web-storage-dev.s3.ap-southeast-1.amazonaws.com/onboarding-web/constants/damas-occupations.json
11
 - https://zvn-web-storage-dev.s3.ap-southeast-1.amazonaws.com/onboarding-web/constants/damas-countries.json
12
 - https://zvn-web-storage-dev.s3.ap-southeast-1.amazonaws.com/onboarding-web/constants/monthlyIncome.json
13
14
15
Fields Requirement
16
17
|name|type|description|mandatory|
18
|:--|:--|:--|:--|
19
|education|dropdown|highest education|Y|
20
|occupation|dropdown|current occupation|Y|
21
|workPlace|text|job workplace|N|
22
|position|text|job position|N|
23
|businessType|dropdown|occupation business type|N|
24
|income|dropdown|range of income|Y|
25
26
27
Component Logic:
28
29
Fields adjustment base on selected occupation, Y = display, N = hide
30
31
|id|name|businessFlag|workplaceFlag|positionFlag|
32
|:--|:--|:--|:--|:--|
33
|1|พนักงานรัฐวิสาหกิจ|N|Y|Y|
34
|2|เกษตรกร|N|N|N|
35
|3|พระภิกษุ/นักบวช|N|N|N|
36
|4|แพทย์/พยาบาล|N|Y|Y|
37
|5|ครู / อาจารย์|N|Y|Y|
38
|6|แม่บ้าน / พ่อบ้าน|N|N|N|
39
|7|ข้าราชการ|N|Y|Y|
40
|8|นักเรียน / นักศึกษา|N|Y|N|
41
|9|เกษียณอายุ|N|N|N|
42
|10|นักการเมืองในประเทศ|N|Y|Y|
43
|11|นักลงทุน|N|N|N|
44
|12|อาชีพอิสระ|Y|Y|Y|
45
|13|เจ้าของธุรกิจ/ธุรกิจส่วนตัว|Y|Y|Y|
46
|14|พนักงานบริษัท|Y|Y|Y|
47
|15|กิจการครอบครัว|Y|Y|Y|
48
49
Workflow:
50
51
<img style="width: 293px;" src="clipboard-202602200906-byf8t.png"><br>
52
53
---
54
55
System Integration
56
57
Objective: To save user information related to education, occupation, and source of income
58
59
API:
60
61
 - Method: POST
62
 - Endpoint: /occupation
63
64
Request Body:
65
66
|Key|Type|Description|
67
|:--|:--|:--|
68
|member_id|string|member id|
69
|education|string|education_level_code|
70
|occupation|string|occupation_code
71
|occupation_name|string|occupation_desc|
72
|name_of_workplace|string\|null||
73
|job_position|string\|null||
74
|business_type|string| business_type_code|
75
|monthly_income|string|monthly income name|
76
|occupation_version|string|current version of occupation|
77
|education_version|string|current version of education|
78
|business_type_version|string|current version of business type|
79
|step|int|current page index|