Project

General

Profile

Occupation » History » Version 1

prin methirattanasophon, 02/20/2026 02:33 AM

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