cancel
Showing results for 
Search instead for 
Did you mean: 

Code for repositioning the borders in SFP

Former Member
0 Kudos

Hello Forum,

Could someone help me with the code for repostioning the borders in SFP?

Thanks

Best Regards

D. Swathi

Accepted Solutions (0)

Answers (1)

Answers (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Swathi,

Are you asking about the page border repositioning. Follwing is the code to reposition any UI Element on the form.

The code is in FormCalc and Java Script and you have to write it in the form's Script editor. Write the code in the event of the UI element you want.

To set Margins use follwing:

Margins

Left

leftInset property

Subform1.margin.leftInset = "measurement"

Right

rightInset property

Subform1.margin.rightInset = "measurement"

Top

topInset property

Subform1.margin.topInset = "measurement"

Bottom

bottomInset property

Subform1.margin.bottomInset = "measurement"

Size and Position

X

x property

Subform1.x = "measurement"

Y

y property

Subform1.y = "measurement"

Width

w property

Subform1.w = "measurement"

Height

h property

Subform1.h = "measurement"

Width Auto-fit

minW property

Subform1.minW = "measurement"

Height Auto-fit

minH property

Subform1.minH = "measurement"

Hope it will help.

Regards,

Vaibhav Tiwari.