Jump to content

This topic is 8158 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I have been unable to figure out how to create a script that will result in either (i) "normal" text or (ii) strikeout text. I would like to attach the script to a button that would be a transparent field that would sit on top of the text, so that the user could click on the text to alternatively yield the normal text or the strikeout text. Thanks for the assistance.

Posted

I'm not sure what you mean, but try this: duplicate your layout. On the first layout display the normal text. On the second layout display the strikeout text (it will have to be in a different field). Just switch between layouts to display the different styles.

Anything more complictaed than this (if you want to be able to change text formatting within a field) is beyond FMP's capabilities.

It's a great database but a lousy word processing program.

Posted

I think that the attached file provides pretty well exactly what you are looking for. No calc fields or relationships, just two stacked text fields and a script. Click on the 'field' (stack) and it will become 'StrikeThu' - click again and it is back to normal.

Shift-click the field to enter it for editing (at the same time removing StrikeThru formatting if that was active).

Have a look and see if this is what you were wanting. The file is password-free.

Cheers,

StrikeThru.zip

  • Newbies
Posted

Ray - Your solution is simple and elegant. (I will be honest; I can duplicate it, but I don't yet really understand it. I will get there. Many thanks.

(I need to adapt it to various situaitons; but I can work on that. )

This topic is 8158 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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