Cat Posted September 27, 2023 Share Posted September 27, 2023 (edited) I need to align the phones and email to the left based on the length of the longest phone label. Both the phones have the label as a variable. I feel like this should be a simple build in tool setting, but I do not even know where to look for the information. See attached. The email should scale to fit on a single line as well. Edited September 27, 2023 by Cat Adding information Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted September 27, 2023 Share Posted September 27, 2023 Here's a sample on how to do this adapted for your use. All the rules are in OnRecordStart with some comments on what's going on. It could probably be cleaned up some but I think it should work for your project. Variable_Tab_Sample.zip Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted September 27, 2023 Share Posted September 27, 2023 This post was recognized by Dan Korn! ThomasLewis was awarded the badge 'Helpful' and 50 points. Ok so I took a closer look in what I posted, which was adapted from some older template. It definitely has some bugs in it when some of the data was missing or unused. I think this should work better. Disregard the previous. Variable_Tab_Sample.zip 1 1 Quote Link to comment Share on other sites More sharing options...
Cat Posted September 28, 2023 Author Share Posted September 28, 2023 ThomasLewis, Thank you! Once I figured out the padding on the longest phone2Label variable [what you had as "Field("Phone 1 Prefix") in your sample], the code worked a treat. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.