Script of the form docReady event!
Hello
I have a simple form with 1 box (off by default) and Textfield 1. The two are distinct forms. I'm trying to make the visible presence of TextField when the box is checked. Script works great for the event box change but not for the Docready event.
Can see the form in pdf here: http://DL.dropbox.com/u/5141935/ErrorInVisibility.PDF
In summary:
I also checked the same on the shape ready, ready layout event... (just for the hit & trial) but no work with either.
There is a big version of form, this is just a version boiled down the problem.
Pls tell what I'm doing wrong!
Thank you.
-
Afonso
Hello
Here's the back of the form: https://acrobat.com/#d=lVnQIhP4B4t0A-N9prn4hQ
I would use the click event of the checkbox to change the visibility of the subform. Then in the box docReady event, you can run the script in the click event.
At the time of the design, you can also set the presence of the subform to hidden or invisible. In this way, that you would not need the docReady event script.
Hope that helps,
Niall
Tags: Adobe LiveCycle
Similar Questions
-
Looking to run a script when the form gets focus
Hello all flexers out there...
I have an application that uses a tab navigator control that is embedded inside a tab navigator control. Basically, it gives me two rows of browsers tab which is really cool. My problem, well my flex related question, is that I want to trigger a code when I select one of the tabs in the browser built-in tab control.
I tried to use the indicator of activation in the header tag but who does not have the first time the form is opened, more it will always fire when the browser loses focus. I tried the indicator initialization, but this event only fires when the form is created first and before all the data is passed to the form. The creationComplete triggers once and it was after that the form is created the first time, but before that any data sent to it.
Grrr... I need to initialize a few combo boxes, but I only want to run the Action Script when the form gets the focus and I need to have the data available before running the script. Any ideas?
Thanks in advance for the help!
Have an ordinary day...
KomputerMan ~ | :-)
Thanks for the tip of Tracy, but the change event fired off so many times, I stop counting until I killed my debugging session.
After reviewing all the events in the model itself, I finally started to recede in the code. It turned out that the show in the canvas that called the 2nd tab navigator works best.
There is one thing about Flex that makes me just batty. The way in which things are called and the number of times where things sometimes called in Flex doesn't make much sense at all. I think we should clean up the sequence of events in Adobe Flex! I keep seeing all kinds of events fire off several times and I can't understand why. Well the show solved this problem for me!
Have an ordinary day...
KomputerMan ~ | :-) -
Display the places available in the form of events
By default, the allocated seats is 1 in the form results, but what do you do if a user wants to book 2 or more seats in the user form. Understand you can add a field, but how it would be recognized as an allocation of seats in form results? Thank you
On a form of event there is no field that you add to seats, unless you want that filled a reason any.
When a form is on reservation, this creates a booking rather than the norm of the case that made a web form. There he seat assignment. This is based on the seat assignment field that you add to the web when form on a booking page layout.
Doc for this is here:
http://docs.BusinessCatalyst.com/user-manual/modules/Events/Booking-multiple-seats-for-an-event -
Question about scripts in the form under repeatbel objects
Hello
I'm working on the creation of a form that has a secondary form that can be repeated as many times as the user wants. There is a button 'Add' that creates an instance of the secondary on the form form, when you click on it.
The secondary form I have 5 numeric fields say a1 - a5 and 1 field b1 which is the sum of all these 5 fields.
On the main screen, I have a 2 fields - say t1 and f1.
The requirement is t1 = f1 + b1 + (instance sous-forme 2 B1) + (sub-form instance 3's b1) + and so on... .depending on as many instances sub-shape there that the user adds.
I created actions using the Action Builder such as when none of the a1 to a5 fields are out, b1 will be updated with the sum of a1 - a5. At the same time t1 will be updated with the sum of f1 and b1.
This works very well for 1 instance of the form under. But when click on 'Add' and a second instance of the secondary form is added, then the script does not work as it did for the first instance of the secondary form. So for all instances of the subshape added, when values are added to a1 - a5 and the fields are exist, b1 not updated.
How can I fix?
See attached form that I create for clarity.
"The total number of hours worked this week" are the t1 I was talking about. See how it is updated when values are entered in all areas of the time. It works great with the default instance of the form on T100/strategic/advantage customer information as well. But when I click on the button "Add Customer" to add another instance of the form sub, it does not work as expected.
Please let me know if it is still is not clear and I can explain the problem.
Hi Ameeth,
Please find below the link that has your document.
https://workspaces.Acrobat.com/?d=OEkwisQ99LXgJ4e9GrCnZg
Hope it works very well...
I don't know why you created these functions?
Let me know if you need any clarification.
Thank you
Sofiane
-
Run the Script on the Open Document event
OK so I know about the spectacle of afterOpen and I think I understand how to use it, however, I do not understand how to open to a specific document.
I don't want this script runs on all the documents that I opened, I would like to incorporate into a document and then run it whenever I open this document. Is this possible?
Maybe run the script in the script label?
Or I just put a script in the start Panel, and then create a session script that checks the name of each document open and then runs the script, if I have a match?
Thank you
As you chart put it in the startup scripts folder
//startup script #targetengine "session" main(); function main(){ var myEventListener = app.eventListeners.add("afterOpen", excuteScriptLabel); } function excuteScriptLabel(myEvent){ //The parent of the event is the document. var myDocument = myEvent.parent; if (myDocument.constructor.name == "Document") { if (myDocument.label != "") app.doScript(myDocument.label, ScriptLanguage.javascript); } }
Then try this line on a document and save it, and then open the same file and a few others, you will notice that this code only run on this document:
app.activeDocument.label = "alert (\"Yes\");";
-
How to run a code in the form postSubmit event
Hi all
I have a simple code that runs perfectly when I put it in form : preSubmit: event, but when I moved to the : postSubmit: event it does not .
Please let me know where to put my code if I need just to be executed once the form is submitted?
Thanks in advance,
Mohammed Al-Christiane
Try using this code:
vMsg var = ""; message to display to the missing mandatory fields
var successflag = 1; indicator to determine if a required field is null
validate all required text fields
for (var nPageCount = 0; nPageCount
var oFields = xfa.layout.pageContent (nPageCount, "field");
var nNodesLength = oFields.length;
for (var nNodeCount = 0; nNodeCount
If (oFields.item (nNodeCount) Contracting == "error") {}
If (oFields.item (nNodeCount) .rawValue == "" | ") oFields.item (nNodeCount) .rawValue == null) {}
vMsg += oFields.item (nNodeCount) .name + ",";
successflag = 0;
}
}
-type in your code
If (successflag == 1)
{
run the insertion in the database code
}
on the other
{
XFA. Host.MessageBox (vmsg); Displays the names of missing fields
}
Kind regards
Chaitanya
-
Data form capture while catching the task create events-
Hello
I want to create any asynchronous event fires when a new task is created especially to process. I did the event filters and created capable of capturing the task Id and process Id for this task. However, I couldn't find a way to get xml data associated with the task.
(My observed contains the form template and input xml)
I see that in 8.2, there was a service called 'AddAttachmentsToTask' called 'getFormAssociatedWithTask' operation to capture the related data by using the task Id. I don't see who'RE 2.5.
Your help is very appreciated.
Thank you
Krishna
You can raise the event as well as the data of the form in the form of event Message data:
I hope this helps.
Thank you
Wasil
-
Why is the form on my riding settings?
Hello
Since we knew by dafault button LIGHT HIGH at the top of the form to the right corner is lit when the form is rendered so that the user will see the bluish fields / checkboxes, well.
But, in our case, we want to OFF in any case always bcz I'm filling / fillling fields w / Red, yellow colors using JS.
Users to see my red Norway JS, yellow colors, I wrote below JS in almost all the events (the initialization of the form, docReady, layout, calculate, ready form) except PreSave, PostSave,.
app.runtimeHighlight = false
(1) but, when the form is rendered still users see the default blue color, the highlight button turned on
(In fact, when the fors is rendered very first fraction of a second I see my red / yellow and immediately in the next second his turns blue while that rendered)
(2) when they began to type / fill in the fields, then it turns on BLUE to my RED/YELLOW colors!
Pls let me know how I can reach my requirements that we must always OFF button so that we can see RED / YELLOW color
Blue failed LC as below
Button who speaks, as below,
Thank you
I don't want to spend it on the LiveCycle Designer forum: LiveCycle Designer
-
Run the code once when loading the form
Hi guys,.
I have a text field (TextField1), which fills with a value (1-100)
During the initial loading of the form, this value will be the highest.
When the user navigates around the shape, this number will change (lower than initial load)
I have another text field (TextField2) on the form I want to keep the original value to the loading of the form.
something like: TextField2.rawValue = TextField1.rawValue
But any event that I put in it always updates TextField2 with TextField1 value (not does not run the code once when loading the form)
Can someone tell how can I do this?
If the form is loaded with the number 70 as a value in TextField1 - TextField2 has 70 as a value and maintains this value regardless of what TextField1 goes to...
Thanks a lot for any help
try putting in the TextField2 docReady event:
$ = TextField1.rawValue
-
How can I send an auto-reply with the contents of the form to the sender?
Hai!
I am new to building websites, but I came a long way
I made a form and I want to send an AutoReply with the content of the form (if it is not too hard) to the person who completed.
What I did is in PHP (coding I copied in part by a person of the internet .)
You can see the of to: http://vinddit.nl/vindditnu%20php%20version.php
So far my PHP coding
<? PHP
Variables Set email
$email_to = ' [email protected] ';
$email_subject = "request - VINDDIT NU!"
Set required fields
$required_fields = array('Voornaam','email','Achternaam','Plaats');
Set error messages
$error_messages = array)
"Chairwoman" = > "John yesterday uw Chairwoman in NL.
'email' = > ' John yesterday een geldig e-mail adres in NL.
"Achternaam" = > "John yesterday uw achternaam in NL.
'Place' = > ' John yesterday uw spend in NL.
);
Status of form
$form_complete = FALSE;
Configure the validation table
$validation = array();
check form submission
{if (!) Empty($_POST))}
Clean up the POST table
foreach ($_POST as $key = > $value) $_POST [$key] = remove_email_injection (trim ($value));
Loop in the required fields and make sure that they fit our needs
foreach ($required_fields as $field) {}
the area has been submitted?
If (! array_key_exists ($field, $_POST)) return ($validation, $field);
check the information in the field?
If ($_POST [$field] == ") return ($validation, $field);
validate the e-mail address provided
If ($field == 'email') if (! validate_email_address($_POST[$field])) return ($validation, $field);
}
result of the basic validation
If (Count ($validation) == 0) {}
Prepare our content string
$email_content = "new website comment: '. '\n\n';"
the simple e-mail content
foreach ($_POST as $key = > $value) {}
If ($key! = 'submit') $email_content. = $key. ': ' . $value. "\n";
}
If the success of the validation ok then send e-mail
mail ($email_to, $email_subject, $email_content);
Switch to update form
$form_complete = TRUE;
}
}
function validate_email_address ($email = FALSE) {}
return (preg_match ('/ ^ [^@\s] + @([-a-z0-9]+\.) + [a - z] {2}, $/ i', $email))? TRUE: FALSE;
}
function remove_email_injection ($field = FALSE) {}
return (str_replace (array ("\r", "\n", "0%", "% 0 d", "Content-Type:", "bcc:","to:","cc:"), ", $field));
}
? >
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".
< head >
form < title > < /title > request
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< link href = "style.css" rel = "stylesheet" type = "text/css" / > "
" < script type =" text/javascript"src =" https://AJAX.googleapis.com/AJAX/libs/MooTools/1.3.0/Mootools-YUI-compressed.js "> < / script > .
< script type = "text/javascript" src = "validation/validation.js" > < / script >
< script type = "text/javascript" >
var nameError = ' <? PHP echo $error_messages ['fullname'];? > ';
var emailError = ' <? PHP echo $error_messages ['email'];? > ';
var commentError = ' <? PHP echo $error_messages ['comment'];? > ';
function MM_preloadImages() {//v3.0
var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();
var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)
If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}
}
< /script >
< style type = "text/css" >
< / style >
< / head >
< body onload = "MM_preloadImages('icons/x.png')" >
< p > < / p >
< p >
<? PHP if($form_complete === FALSE)?: >
< /p >
< form action = "vindditnu php feed.php" method = "post" enctype = "application/x-www-formulaires-urlencoded" name = "Form" id = "commentsform" >
< h1 > < img src = "icons/vinddit3.gif" width = "220" height = "80" alt = "logo" / > < / h1 > "
< h1 > Wat u zoekt? : < / h1 >
< table width = "690" border = "0" >
< b >
< td > in welke category zoekt u? * < table >
< td colspan = "3" > < select name = "Ophalen_verzenden" id = "Ophalen_verzenden" >
< option selected = "selected" > Meubels < / option >
Witgoed < option > < / option >
< option > Accessories Woon < / option >
Kleding < option > < / option >
Shoes < option > < / option >
< option > Mode accessories < / option >
Speelgoed < option > < / option >
Boeken, / tɛjd.sχɾɪft /, papierwaren < option > < / option >
< option > Overig < / option >
< / select > < table >
< /tr >
< b >
< td > Kleur: * < table >
< td colspan = "3" > < select name = "using" id = "using" >
Blauw < option > < / option >
Rood < option > < / option >
WIt < option > < / option >
Zwart < option > < / option >
Beige < option > < / option >
Bruin < option > < / option >
< option > Geel < / option >
Oranje < option > < / option >
Rood < option > < / option >
< option > metal (great. REFLECTOR, Goud, Brons, Koper < / option >
< option > Meerkleurig < / option >
< option selected = "selected" > Overig / nadège < / option >
< / select > < table >
< /tr >
< b >
Merk < td >: < table >
< td colspan = "3" > < input name = "Me" type = "text" id = "Merk5" value = "<?" PHP echo isset($_POST['Merk'])? $_POST ['Merk']: "?; ">" / >
<? PHP if (in_array ('Brand', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['Merk'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
< td > design: < table >
< td colspan = "3" > < input type = "text" name = "type" id = 'type' value = "<?" PHP echo isset($_POST['type'])? $_POST ['type']: "?; ">" / >
<? PHP if (in_array ('type', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['type'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
Art < td >: < table >
< td colspan = "3" > < input name = "Art" type = "text" id = "Case" value = "<?" PHP echo isset($_POST['Materiaal'])? $_POST ["art"]: "?; ">" / >
<? PHP if (in_array ('Art', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ["art"];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
Maat < td >: < table >
< td colspan = "3" > < input type = "text" name = "Maat" id = "Maat" value = "<?" PHP echo isset($_POST['Maat'])? $_POST ['Maat']: "?; ">" / >
<? PHP if (in_array ('Maat', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['Maat'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
< td > condition *: < table >
< td colspan = "3" > < select name = "condition" id = "condition" >
Zo goed als nieuw < option > < / option >
< option > Nieuw < / option >
< option > Bebruikt < / option >
< option selected = "selected" > Geen information < / option >
< / select > < table >
< /tr >
< b >
< td > collect/question: * < table >
< td colspan = "3" > < select name = "collect" id = "collect" >
Collect < option > < / option >
< option > question < / option >
< option > n < / option >
< option > Geen information < / option >
< / select > < table >
< /tr >
< b >
< td > Prijs Min: < table >
< td > < input name = "prijsmin" type = "text" id = "prijsmin" size = "10" value = "<?" PHP echo isset($_POST['prijsmin'])? $_POST ['prijsmin']: "?; ">" / >
<? PHP if (in_array ('prijsmin', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ["prijsmin"];? > < / span >
<? PHP endif;? > < table >
Max de Prijs < td >: < table >
< td > < input name = "Price" type = 'text' id = "Prijs" size = "10" value = "<?" PHP echo isset($_POST['Prijs'])? $_POST ['price']: "?; ">" / >
<? PHP if (in_array ('Prijs', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['price'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< /table >
< h1 > unstable: < / h1 >
< table width = "690" border = "0" >
< b >
< td = "25" height > unstable: < table >
< td rowspan = "2" > < textarea name = "Unstable" cols = "67" lines = '10' id = 'Unstable' > <? PHP echo isset($_POST['Opmerkingen'])? $_POST ['unstable']: "?; > < / textarea >
<? PHP if (in_array ('Unstable', $validation)):? >
< span class = "error" > <? PHP echo $error_messages 'unstable'?; > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
< td = "78" height > < table >
< /tr >
< /table >
< h1 > Uw Gegevens: < / h1 >
< table width = "690" border = "0" >
< b >
< td > Chairwoman / Voorletters *: < table >
< td > < input type = "text" name = "Chairwoman" id = "Chairwoman" class = "invul" value = "<?" PHP echo isset($_POST['Voornaam'])? $_POST ['Chairwoman"]:"?; ">" / >
<? PHP if (in_array ('Chairwoman', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ["Chairwoman"];? > < / span >
<? PHP endif;? > < table >
< td > Achternaam: * < table >
< td > < input type = "text" name = "Achternaam" id = "Achternaam" class = "invul" value = "<?" PHP echo isset($_POST['Achternaam'])? $_POST ["Achternaam"]: "?; ">" / >
<? PHP if (in_array ("'Achternaam", $validation)):? >
< span class = "error" > <? PHP echo $error_messages ["Achternaam"];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
Straatnaam < td >: < table >
< td > < input type = "text" name = "Straat" id = "Straat" class = "invul" = value "<?" PHP echo isset($_POST['Straat'])? $_POST ['Straat']: "?; ">" / >
<? PHP if (in_array ('Straat', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ["Straat"];? > < / span >
<? PHP endif;? > < table >
Huisnummer < td >: < table >
< td > < input name = "Huisnummer" type = "text" id = "Huisnummer" class = "invul" size = "10" = value "<?" PHP echo isset($_POST['Huisnummer'])? $_POST ['Huisnummer"]:"?; ">" / >
<? PHP if (in_array ('Huisnummer', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ["Huisnummer'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
Code postal < td >: < table >
< td > < input type = "text" name = "PostalCode" id = 'postal Code' class = "invul" value = "<?" PHP echo isset($_POST['Postcode'])? $_POST ['postal code']: "?; ">" / >
<? PHP if (in_array ('Postcode', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['postal code'];? > < / span >
<? PHP endif;? > < table >
< td > place: * < table >
< td > < input type = "text" name = "Place" id = "Place" class = "invul" value = "<?" PHP echo isset($_POST['Plaats'])? $_POST ['place']: "?; ">" / >
<? PHP if (in_array ('Place', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['place'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
< td > email Adres: * < table >
< td colspan = "3" > < input type = "text" name = "email" id = "email" class = "invul" = value "<?" PHP echo isset($_POST['email'])? $_POST ['email']: "?; ">" / >
<? PHP if (in_array ('email', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['email'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< b >
Number < td >: < table >
< td colspan = "3" > < input name = "Categories" type = "text" id = "Categories" class = "invul" value = "<?" PHP echo isset($_POST['Telefoon'])? $_POST ['categories']: "?; ">" / >
<? PHP if (in_array ('Téléphone', $validation)):? >
< span class = "error" > <? PHP echo $error_messages ['categories'];? > < / span >
<? PHP endif;? > < table >
< /tr >
< /table >
< p >
< label for = "Straat" > < / label >
< label for = "Huisnummer" > < br / >
< / label >
< input type = "submit" name = "Submit" id = "Submit" value = "Verstuur" / >
< input type = "reset" name = "Reset" id = "Reset" value = "Wissen" / >
< /p >
< / make >
<? PHP else:? >
< div class = "fresh" >
< p > Bedankt voor uw request! < /p >
< p > Wij zullen uw request zo mogelijk processing soon. Meestal if said 2-3 werkdagen. < /p >
< p > < img src = "icons/vinddit3.gif" width = "220" height = "80" alt = "logo" / > < / p > "
< / div >
< p >
< script type = "text/javascript" >
setTimeout ("ourRedirect ()", 5000)
function ourRedirect() {}
}
< /script >
<? PHP endif;? >
< / body >
< / html >
and. JS
window.addEvent ('domready', function() {}
Get the form
var form = $('comments_form');
If the form is...
If {(form)
get the error fields
var name = $('fullname');
e-mail var = $('email');
Var comment = $("commentaire");
Set the default state
var isValid = true;
function of input for the error messages error
addError var = function (field, msg) {}
field.addClass ('error'); Add the error class to the field
var error = field.getParent () .getElement ('span') | new element ('span', {'class': 'error'}); Add error message if not already placed
Error.Set ("text", msg); error text msg
Error.Inject (field, 'after'); Insert the error message after field
};
detach the function of error used to remove the error messages and remove the error class
removeError var = function (field) {}
field.removeClass ('error'); Remove the error of form fields class
var error = field.getParent () .getElement ('span'); find the existing error messages
destroy if error message
If {(error)
Error.Destroy ();
}
};
Insert the form submit event
form.addEvent ("submit", function (e) {}
Length of the name of test
If (name.get('value').length = 0) {}
isValid = false;
addError (name, nameError);
} else {}
isValid = true;
removeError (name);
}
check the length of e-mail
If (email.get('value').length = 0) {}
isValid = false;
addError (e-mail, emailError);
check the validity of the email
} else if (! email.get('value').test (/ ^ ([a-zA-Z0-9 + Zinsou-] +) (\.))) [a-zA-Z0-9\+_\-]+)*@([a-zA-Z0-9\-]+\.) + [a-zA-Z] {2, 6} ($/)) {}]
isValid = false;
addError (e-mail, emailError);
} else {}
isValid = true;
removeError (email);
}
check the length of the comment
If (comment.get('value').length = 0) {}
isValid = false;
addError (comment, commentError);
} else {}
isValid = true;
removeError (how);
}
If the invalid form then stop occurrence of the event
If (! isValid) {}
e.Stop ();
}
});
}
});
If the success of the validation ok then send e-mail
mail ($email_to, $email_subject, $email_content);
Only, you should be able to add automatic response php code before "mail" works in your existing php code (marked in red below). Then add another function of mail after the function of main e-mail as shown below.
build the auto answer
$reply = $_POST ['email'];
$replysubject = "auto-Reply: name of the Web site;
$replyfrom = "from: [email protected]\r\n";
$replymessage = 'your request has been sent successfully. A member of the staff is reviewing your request and is soon in contact. Thankyou.\r\n\r\n ';
$replymessage. = 'yours Sincerely, \r\n ";
$replymessage. = 'Position in society - society Name\r\n ';.
$replymessage. = "this email is automated, so please NO reply.\r\n;
If the success of the validation ok then send e-mail
mail ($email_to, $email_subject, $email_content);
mail ($reply, $replysubject, $replymessage, $replyfrom);
-
Run the script on the ESX host
Newb question...
How to run a script on an ESX 4.0 host?
I received a script in the form of a *.sh file I need to run on my host. I have vCenter works... I can do through this?
You need SSH in the host. Under tab VI client users click "Add a user" and make sure that check "shell to grant access.
Then download a SSH client and install it on your desktop (installed by default on Linux/MaxOSX), a good Windows free one called PuTTY.
http://www.chiark.greenend.org.uk/~sgtatham/PuTTY
Use the username and password you created to open a session on the server. then type 'su-' (i.e. LESS known www.phdvirtual.com
-
I've created an Adobe Dynamic XML using LiveCycle Designer form with many fields / subforms that are 'visible' or the 'hidden' according to the selected options of different menu drop-down lists. Also, the form has been activated to save. Users can successfully fill out the form and save a copy with the data that has been entered.
The problem I have is that when the recorded file is opened again in the 'hidden' fields / subforms that were previously made visible by selecting the appropriate options in the drop-down list NOT displayed now. However if you make the same selections from each of the drop-down list shows still hidden ONCE the fields / subforms are displayed, and do not contain data that has been entered.
The problem seems to be that the script that determines whether a field / subform is 'hidden' or 'visible' is a
"<event activity="output" name="event__exit">" "
that is followed by
If (this.rawValue is '0')- (i.e. the value of the drop-down list)
sfCompanyDetails.presence = "visible";
sfRecruitmentAgency.presence = 'hidden ';
etc, etc.
and, therefore, it is not executed again when the file is reopened.
Can someone advise please how do I do this?
Hello
Check if you enabled the "auto" option to keep the script changes in the properties of the form.
-
script to force highlights when the user opens the form?
I wonder if there is a way to ensure that the functionality of highlight in the reader is on when someone opens my form. This will help them see where they enter information. Can I include a script in my form for this?
Thank you for any assistance.
Hello
If you select the root / parent in the hierarchy (form1) and put the following in the docReady event javascript code:
app.runtimeHighlight = true;
This turn on the light blue shadow in all fields and give a red border for the required fields. It's a good idea to put the following text in the docClose event so that when the user opens a different form, the highest point is turned off.
app.runtimeHighlight = false;
Hope that helps,
Niall
-
run event.target from a page 1 button to run on page 4 of the form
Hello
I currently have a button on page four of the form which takes place this javascript.
If (event.target.value! = 'Off') {}
this.getField("strike5").display = display.visible;
} else {}
this.getField("strike5").display = display.hidden;
}
If (event.target.value! = 'Off') {}
this.getField("strike6").display = display.visible;
} else {}
this.getField("strike6").display = display.hidden;
}
//
If (event.target.value! = 'Off') {}
this.getField("strike7").display = display.hidden;
} else {}
this.getField("strike7").display = display.visible;
}
If (event.target.value! = 'Off') {}
this.getField("strike8").display = display.hidden;
} else {}
this.getField("strike8").display = display.visible;
}
I wish now to turn by a button on page 0 to do the same on page four.
Is this possible?
I hope so... See you soon
I would create a document-level function to adjust the display of the fields when the box of cehck is not equal to 'Off '.
function SetStrikeDisplay (cValue)
{
Set the fields to display when the value is 'Off' to the default value;
this.getField("strike5").display = display.hidden;
this.getField("strike6").display = display.hidden;
this.getField("strike7").display = display.visible;
this.getField("strike8").display = display.visible;
If (cValue! = "Off")
{
this.getField("strike5").display = display.visible;
this.getField("strike6").display = display.visible;
this.getField("strike7").display = display.hidden;
this.getField("strike8").display = display.hidden;
}
return;
} / / end of function SetStrikeDisplay;For each field, you want this script to run to use the following code:
SetStrikeDisplay (event.target.value);
-
If/then box script help in the form of Adobe Acrobat...
If having a purchase order that has two different fields of price (regular price per point & subscription price per article for each line item, then a quantity) and then a total field. Finally, there is a checkbox on the form indicating if they sign up for a monthly subscription.
What I try to do is create a script that totals each line by the current price multiplied by the quantity or the price of the subscription by amount if the subscription checkbox is checked ("Yes"). So far, I've tried several scripts, I found in the forum but no luck at all.
The box is near the billing fields down, so all the line items first appear in the upper part of the form. Thus, an individual if each line and calculations would amount in total to each line (reg * qty price) when you get off of the form... When you check the subscription all line totals would have changed to reflect the subscription rates on each line (which may be different). Just need help with a single line and I can duplicate for each line...
Here's what I does NOT again...:
(function () { if (this.getField("sub").value==="Yes") { var b1 = this.getField("Price1b"); var c1 = this.getField("Qty1"); var d1 = this.getField("Price1"); event.value = b1.value * c1.value; } else event.value = d1.value * c1.value; } )();
Try this:
(function () {}
var b1 = getField("Price1b").value;
var c1 = getField("Qty1").value;
var d1 = getField("Price1").value;
If (getField("sub").value = 'Yes') {}
Event.Value = b1 * c1;
} else {}
Event.Value = d1 * c1;
}
})();
Maybe you are looking for
-
How to stop Firefox Sync synchronization Personas?
Firefox Sync keeps syncing my characters between browsers, which is a bit frustrating because I prefer to keep separate personas on different computers. I can't find an option to turn it off. Does anyone know how to do this?
-
Retriever update that supports Windows 8?
Hi Lenovo Will there be an update, Update Retriever for Windows 8 soon? Thank you very much
-
Speed: 16 GB RAM or SSD + ext HDD?
Just look for opinions and thoughts. I have an early 2011 MBP, OS 10.9.5, with 8 GB of RAM and a 2 TB HARD drive. He runs a browser, World of Warcraft and... file server. App switching and loading game is slower than I'd like. New finder windows s
-
Get the codes of error 643 and 646 with these updates.
I can not download successfully the following security updates:KB953297, KB978380, KB978382 and KB979895. I get the error 643 and 646 code.
-
Runing XP my screen scrolls in waves, rather than a controlled manner. All ideas