Jump to content

Insert Current Date?


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

Recommended Posts

I have a text field which scrolls because of occasional length of content.

I have a script which includes "Insert Current Date" and "Insert Current Time." I turned of the "Select Entire Contents" feature for this script.

I made the text field act as a button, so when the text field is clicked (to either enter or edit the text) the current date is added.

Here is the question...the current date is always added to the end of any existing text in the field. Is there any way to have it be added to the front of any existing text within the field?

LR

Link to comment
Share on other sites

Not sure I understand what you want 100% but a script step like:

code:


SetField[TEXT_FIELD,"DateToText(Status(CurrentDate))&" "&TEXT_FIELD"]

should do it.

This will add the current date to the start of TEXT_FIELD and place the cursor at the end of the contents of that field.

Russ Baker

Link to comment
Share on other sites

This topic is 7142 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
 Share

×
×
  • Create New...

Important Information

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