Expand my Community achievements bar.

how to control prsence of fields in saveas method.urgent please

Avatar

Level 2

I Created a template form with some buttons ,textfields and dropdown fields. i kept saveas button if user clicks and saves the file as another name . i want to remove apprence of buttons and drop down buttons etcc.. i tried

dataroot.Transmittal_pdf.Button1::click - (JavaScript, client); save as button click

dataroot.Transmittal_pdf.Button1.presence="invisible";

dataroot.Transmittal_pdf.ResetButton1.presence="invisible";

dataroot.Transmittal_pdf.PrintButton1.presence="invisible";

dataroot.Transmittal_pdf.Project_Type.presence="invisible";

dataroot.Transmittal_pdf.Contract_Type.presence="invisible";

app.execMenuItem("SaveAs");

this one buttons are invisible in template  not in saved copy

dataroot.Transmittal_pdf.Button1::click - (JavaScript, client); save as button click

dataroot.Transmittal_pdf.Button1.presence="hidden";

dataroot.Transmittal_pdf.ResetButton1.presence="hidden";

dataroot.Transmittal_pdf.PrintButton1.presence="hidden";

dataroot.Transmittal_pdf.Project_Type.presence="hidden";

dataroot.Transmittal_pdf.Contract_Type.presence="hidden";

app.execMenuItem("SaveAs");

with regards

prasad

3 Replies

Avatar

Level 5

Hi,

Can you check that in the form properties you have the "preserve script changes to form when saved" is set to "Automatic".

to get to the setting it is File->Form Properties and then select the "Defaults" tab

AutomaticScript.jpg

Hope this helps

Malcolm

Avatar

Level 2

Malcolm

it is worked for me for buttonms . but drop down arrow button still remained. please advice

with regards

prasad

Avatar

Level 5

Hi,

Can you upload your file to a sharing site ( e.g. acrobat.com ...... ) and share it so that we can look at the file and see what is happening?

Regards

Malcolm