[Scribus] Fillable form with Form ID

Maciej Hanski ma_han2000
Wed Apr 25 20:28:54 CEST 2007


Prasad Mhatre napisał(a):
> Dear Friends,
> 
> Does anyone have some working example of Scribus Fillable Form with unique
> FORM ID?
> 
> I did tried to make a form, and everything works except the unique Form ID.
> The tutorial shows the same this way:
> 
> Tools=Javascript=DocmentScript
> while the Scribus software I have shows this way..
> 
> Edit=Javascripts=Edit Javascript
> and here according to tutorial I have
> 
> var f = this.getField("Today");
> f.value = util.printd("mm/dd/yy", new Date());
> 
> I have define the field Today in my form, but still I don't get any date
> printed automatically.
> The tutorials that I have are PDF files , no sla files are provided.
> 

Perhaps try it this way:

// Get the current date and time
var rightNow 	= new Date();
rightNow 	= rightNow.toLocaleDateString();

var f = this.getField("Today");
f.value 	= rightNow;

I've attached a quick&dirty demo form for you to play with:)

hth
Maciej
-------------- nächster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname   : test2.sla.gz
Dateityp    : application/gzip
Dateigr��e  : 10319 bytes
Beschreibung: nicht verf�gbar
URL         : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20070425/50c69a0e/attachment-0001.bin 



More information about the scribus mailing list