function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Adeline MooreAdeline Moore 

Aligning text in a flow?

User-added image

Anyone know how to align text fields in a flow? I would like it all to be centered

Plese help!

Adeline
Roshni RahulRoshni Rahul
Can you post the VF page that you have created for it? Then it will be easy to align the text field.
If you include the content inside <table> tag with <tr> and <td>.Set the width of the <td>
Hope it helps.

Regards
Roshni



 
Adeline MooreAdeline Moore
Here is the VF Code I found that I thought would work. I thought I could just drop my flow into a VF page. I have never used a VF page and Have no Coding experience. That is why i built it using a flow. 
User-added image

Can you tell me what code to add to VF oage to center all of my flow?

Please!

Adeline Moore
Roshni RahulRoshni Rahul
hi Adeline,

please try the code below,
<apex:page>
<center>
<flow : interview name= flowname>
</center>

</apex:page>

let me know if you have any issues.
 
Adeline MooreAdeline Moore
Roshni,

Thank you for helping me, im still getting errors 
User-added image

User-added image 
 
Roshni RahulRoshni Rahul
Adeline MooreAdeline Moore
I read that link yesterday but i do not know coding :( I didnt think i could coy that code as it seems to be for an app. Maybe i need part of that code?
Roshni RahulRoshni Rahul
the flow syntax should be same as you have done before, just add center tag only...then check it
Roshni RahulRoshni Rahul
<apex:page>
<center>
<flow:interview name="you flow name" ></flow:interview>
</center>
</apex:page>

 
Adeline MooreAdeline Moore
Sorry I dont understand "Center tag" I know nothing about codes.

 Didnt we already use the word "center" in the code below?User-added image

 
Roshni RahulRoshni Rahul
Dont worry, will help you .. try what i have just posted..
Adeline MooreAdeline Moore
I don't understand why it keeps saying the flow is not active 

User-added image
User-added image
It clearly says the name of the flow and that ist is active :(
Roshni RahulRoshni Rahul
error was because you havent put quotes for the name of the flow and spacing for that colon.
Roshni RahulRoshni Rahul
ok... i thing the alignment issue might have been solved. Its because your flow which you have created have some issue. Is there any other flow that is active which is not required.Just check it out and let me know
Adeline MooreAdeline Moore
Ok here is the code I used:
added space before and after colon and deleted the quotes around my flow name.
 
<apex:page>
<center>
<flow : interview name= Canis Minor Application Flow ></flow:interview>
</center>
</apex:page>

These are the errors i get now:

Error: CanisMinor_Application_page line 3, column 9: Attribute name ":" associated with an element type "flow" must be followed by the ' = ' character

Error: Attribute name ":" associated with an element type "flow" must be followed by the ' = ' character.
Adeline MooreAdeline Moore
That is the only flow I have turned on. Its the first one I've built.

This flow is also still being built it is an application to be filled out by potential leads. I still have to do all the mapping from the whole flow to the records in SF. 
Roshni RahulRoshni Rahul
Use this code.
<apex:page>
<center>
<flow:interview name="Canis Minor Application Flow" ></flow:interview>
</center>
</apex:page>
Adeline MooreAdeline Moore
User-added imageStill says my flow is not found or active. :((( thank you so much for being so patient:)
Roshni RahulRoshni Rahul
its ok... i will let you know by tomorrow. Because I searched for that error but i couldnt find solution for it. 
Roshni RahulRoshni Rahul
Hi, 
Hi did you set the start element in your flow?

User-added image
Adeline MooreAdeline Moore
Yes Start element is set.
 
Roshni RahulRoshni Rahul
Hi Adeline,

Sorry for the delay. Did you solve the issue. I found why it is showing inactive.
User-added image

Actually you have to mention the flow  name as Canis_Minor_Application_Flow. 
<apex:page>
<center>
<flow:interview name="Canis_Minor_Application_Flow" ></flow:interview>
</center>
</apex:page>

Now it works. Happy to help you :)
Hope it works. If it is working for you, please mark it as best answer.

Regards
Roshni