Hi everyone,
I have a question here. Is there any way to make the position of the variable (for instance, <<[Name]>>) flexible depending on the length of its value? I was trying to design a certificate, and plan to send it using email via Bot. Hence, I have to put variables inside as shown below:
I would like to keep the value of <<[Name]>> in the middle, regardless of its length. The result is ok when the name is short, but when it has a long length, like โName for Testing Purpose Onlyโ, it ends up like this:
I want it to always remain in the middle like this:
Anyone reading this post has any idea? Thanks.
Solved! Go to Solution.
Okay, in that case , one reason could be, the minimum margin is introduced by the AppSheetโs template to PDF conversion engine.
Other community colleagues may have better insights or you may wish to contact AppSheet support team.
Hi @Dion
Did you try to set โcenteredโ to your <<[Name]>> part on your template ? (or โmiddleโ, I donโt know the English word for it)
For some reasons, I try to avoid changing the alignment. But maybe I can give it a shot.
@Aurelien bad newsโฆ it didnโt work
Is it possible to know how your template looks? Have you placed the template variables simply on the template page?
If you have simply placed the template variablea on the template page , please place them inside the table as below. Make the template variables with centered alignment inside the table. The table also needs to be centered on the page.
After ensuring the alignment, make the table border itself white color or color of the certificate background. This is shown below by highlighting the table.
Then the emailed certificate PDF will look like below
With the table border black color retained just to demonstrate the center alignment
The below certificate PDF has table borders made to white
Edit: Changed images to reflect correct date expression
@Suvrutt_Gurjar Your suggestion does make the text in my certificate become neat. Thanks a lot. But another problem came out. Do you know how to remove this margin? The picture shown below is the certificate sent by Bot. The reason why I didnโt remove the borderline is to see clearer
If you are using Google doc, please make left, right ( and top, bottom as necessary) margins 0
Option under File โ > Page Setup
Same procedure for the Word template
You may still have some space when you place pictures etc inside the tables. To get rid of any spacing within the tables, please make the highlighted settings below.
Option Format โ > Table โ > Table Properties
@Suvrutt_Gurjar Thank you. I will try out your suggestion and get back to you later.
@Suvrutt_Gurjar Iโd done everything you said, I set all the margin to 0, put the text inside table. Now the certificate looks pretty decent, but thereโs still margin like what I showed before.
Okay, in that case , one reason could be, the minimum margin is introduced by the AppSheetโs template to PDF conversion engine.
Other community colleagues may have better insights or you may wish to contact AppSheet support team.
I see. Alright. Thank you very much for your help!!
User | Count |
---|---|
40 | |
36 | |
33 | |
23 | |
17 |