Citizen Consent Form UI
UI details for consent forms for citizen users
Last updated
UI details for consent forms for citizen users
Last updated
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Objective: This feature allows users to get consent from the citizen during the citizen login. This is needed only on the citizen/architect side of the login. This feature is present on the citizen login page where the user is allowed to make payments without login.
Citizen users must enter their mobile number and tick the check box. Clicking on the Next button enables users to log in.
The next screen is visible as below:
Enter mandatory fields and tick the check box. Clicking on the Next button enables users to proceed to the next step.
Clicking on Privacy Policy opens a popup with the policy content.
Using the MDMS, we can enable or disable the feature by setting the param isCitizenConsentFormEnabled
: true or false in the MDMS file (CitizenConsentForm.json).
Setting it to true indicates the feature is enabled. Setting it to false indicates the feature is disabled (old logic will work as it is).
Share the HTML file with the DevOps team with the bucket name, they will provide the s3 link for html file.
Here, 1. isCitizenConsentFormEnabled is used to enable the citizen consent form. 2. checkBoxLabels is used to display labels along with the link. 3. link is used to display the link. 4. linkId is used to pass the id to the header to display the header dynamically. 5. en_IN is the language code and is also used to display the content using the s3 link. 6. linkPrefix is used to display the link pre-content. 7. linkPostfix is used to display the link post content. 8. CitizenConsentForm is the mdms config.
Localisation keys are added under the ‘rainmaker-common’ locale module.
The first step is to enable the feature in MDMS and add the check box labels checkBoxLabels
in the MDMS file CitizenConsentForm.json.
File Path: SelectMobileNumber.js
Component: CitizenConsentForm
(File path: CitizenConsentForm.js )
The first step is to enable the feature in MDMS and add the check box labels checkBoxLabels
in the MDMS file CitizenConsentForm.json
File Path: index.js
Component: CitizenConsentForm
(File path: CitizenConsentForm.js )
Write the documentation then convert it into HTML. (There are multiple conversion tools online like Convert Word and PDF files to HTML | Free online HTML editor). Use anyone to convert the document to HTML. Before converting make sure to format the document using the above link.
Take that link and update it in the MDMS file where we configured before CitizenConsentForm.json. For each instance, we need to create a separate s3 link.
Here, use the language as the key and the URL as the param.
Example: for English, the language key is en_IN
and value is https://qa.digit.org/egov-qa-assets/ProductPrivacypolicy.html
MDMS file: CitizenConsentForm.json
MDMS: The same file is used in OLD UI also i.e. ( CitizenConsentForm.json ) File Path: Added one more object in the login form config. (login.js ) The logic of the Citizen Consent Form is in the below files.