Change border style on page load

Alan Robert Diehl shared this question 5 years ago
Answered

I'm having a problem changing the border style of a rich text element on a page load event. I'm trying to add a top border object already has a left right and bottom borders with rounded corners. I know the event fires because the statement contains other actions that are processed. 0a0e25141d79cbf102c9555a2135560b

Comments (3)

photo
1

Take a look at the image below. Is that what you want? If yes, here's how I did it.


1. drop rich text widget into canvas


2. In Properties panel, put some Round values, change the color of Bottom, Left, Right to white, and finally change the color of Top to black f216af4f2d4579719d345711232e2488

photo
1

Let me see if I can explain my problem better. I've included some images to help. The Rich text widgets are on a Dynamic Panel on a Data Grid that filters to one customer. Image 1 is how it looks if customer has Home, Work & Mobile phone numbers all in separate widgets .


3c9ab69edb3a421466d7e23c20a541ae


The home (top) widget has left, right and top borders with rounded corners. The Work (middle) widget has left, right, top & bottom borders no rounded corners. The bottom (mobile) widget has left, right & bottom borders with rounded corners. On page load I hide widgets with empty values in this example no Home or Work numbers. I want it to look like image 2 so in the "on page load" event I use "Change Style" action to add top border.


but the result I actually get is image 3. My thought that possibly the Data Grid may be affecting the action because I tried it with a simple screen with only widgets & event works.


photo
1

Can you please send your prototype to jim.support@justinmind.com? I will take a look at it from there. Simply hiding/showing the widgets doesn't solve the issue because it doesn't change its style when the page loads. Therefore, you might need to use variables and conditions.