Expand my Community achievements bar.

Right align text caption

Avatar

Level 1

Hello and thank you for your help.  I am having a problem that seems a bit elementary--but I can't seem to crack it.  Please let me know if you have any recommendations.

I want a date/time field that automatically inserts today's date.  However, I would like to add a caption to the left of the date that is aligned right and will 'float' depending on the date.

I've attached a file that may clear up what I'm trying to do.  The top field is what I currently have and the lower two are basically what I want--only they are simply text fields instead of automatically generated date fields.

https://www.box.com/s/6834091bedc04d4c23a1

Thanks!

1 Reply

Avatar

Level 7

You need to create a text field, make it right aligned and into that field insert a floating field. Then in the layout:Ready event of the floating field put in Formcalc:

$.rawValue = Concat("Issue Date: ",Num2Date(Date(), "YYYY-MM-DD"))

Just change the YYYY-MM-DD bit to whatever pattern you want the date to be.