Certificate Field Formatting Issue #9365
-
|
We have encountered a certificate issue. As per our requirement, we need to allow up to 100 characters for certificate name and birth place field lengths. Currently, we are using a wrapper function to separate these values into lines, but when a small name is entered, it creates a large gap between certificate fields. Additionally when there is less space, fields sometimes overlap when moving downward. Is there any way we can mitigate this? Any advice, insights, or examples would be very much appreciated. I have attached examples of our current birth and death certificates. Thanks a lot for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @Hyper3x, a lot depends on the design and the code of your SVG file. We often have to write handlebar helper functions to wrap text and sometimes manipulate the SVG code and tags to create areas that dynamically reposition given the text content supplied to it. 2 common helper functions we use are below. You would put them in here: https://github.com/opencrvs/opencrvs-countryconfig/blob/develop/src/form/common/certificate/handlebars/helpers.ts |
Beta Was this translation helpful? Give feedback.
Hi @Hyper3x, a lot depends on the design and the code of your SVG file. We often have to write handlebar helper functions to wrap text and sometimes manipulate the SVG code and tags to create areas that dynamically reposition given the text content supplied to it.
2 common helper functions we use are below. You would put them in here: https://github.com/opencrvs/opencrvs-countryconfig/blob/develop/src/form/common/certificate/handlebars/helpers.ts