Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GetAsCSS ( text ) : odd behavior

Featured Replies

We have a text field ( text ) with 2 rows of text:
the first row is aligned to center and the second row is aligned to right.
 
 

first row

second row

 
 
Which is supposed to be the result of:
 
GetAsCSS ( text ) with FMP12   ???

 

The result isn't consistent, sometimes is:

 

<SPAN STYLE= "text-align: center;" >first row<BR></SPAN>

<SPAN STYLE= "text-align: right;" >second row</SPAN>

 

other times is:

 

<SPAN STYLE= "text-align: center;" >first row<BR>second row</SPAN>

I get <SPAN STYLE= "text-align: center;" >first row<BR>second row</SPAN>   every time under normal use. the only way I an able to duplicate your problem is if I hit alt+0 which does not leave a physical character but changes the getasscss()

 

I would look at hidden characters first by retyping the fields on a few records to see if they are all the same.

then I would check to see if Filemaker up to date ?

are you running the file from Filemaker server or on your local machine?

  • Author

Thank you.

 

"are you running the file from Filemaker server or on your local machine?"

Local

 

The correct behavior ( IMHO ) must be the first result, not the second which lose the "alignment".

 

Now try with the second row bolded: what do you see ?

daniele, i get this from a local as well as a remtoe file:

 

<SPAN STYLE= "text-align: center;" >first<BR></SPAN><SPAN STYLE= "font-weight: bold;text-align: right;" >second</SPAN>

 

i typed and formatted the text manually.

  • Author

Yes and that is the odd behavior!

 

Only formatting the second row we can see the correct alignment of the second row.

  • Author

I'm attaching a simple .fp7 file with a custom function that corrects the GetAsCSS ( ) errors.

test GetAsCSS.zip

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.