calculation script based on the value of a radio button
I wonder if anyone can give me help. I'm doing a calculation script that I can insert in a number field that will calculate only when a radio button is checked. I'm doing an estimate sheet when some check boxes or radio buttons are selected (such as the moving of furniture, pulling up old flooring), it will calculate a supplement based on this selection. Any help would be appreciated.
Hello
Paul is right, it's probably something small that is causing the script to fall. Make sure that the things you talk about in your script are correct (to the right name and the full reference in the event of different subforms).
There is also a syntax button to tick at the top of the script editor. If you click this button, he can identify the problem.
In which case it might be useful, here is a sample: https://acrobat.com/#d=bUfCkHbTaU0 * GD6Y7pv41w
Good luck
Niall
Tags: Adobe LiveCycle
Similar Questions
-
Using the calculation script to write the value of the variable Substitution in a file
Hello
I am trying to use the calculation script to write the value of Substitution variable in a text file.
I use the dataexport command. But it is not able to write values in the text file.
Any help is appreciated.
Thank you.MaxL would display variable. See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispvarb.htm
BTW, I mostly prefer Esscmd MaxL. I think that makes me a heretic, but I don't understand why I don't want to type more rather than less to get the same result.
Running a calc:
Esscmd - RUNCALC 2 calcname
MaxL - run calculation Sample.Basic.calcname;To be fair, Esscmd requires a dbname appname SELECT before the RUNACALC, but it is always less striking.
However, time is running, so I don't have too. And of course, MaxL now has many things that Esscmd doesn't like Esscmd is obsolete.
I always use Esscmd to run scripts of calc I can actually watch the output in real time as opposed to MaxL that exports the console at the end of execution.
Kind regards
Cameron Lackpour
-
Script to detect the moment when a radio button is clicked / digital signature signed
Good afternoon
What is the syntax to detect whether a radio button is pressed or a digital signature field is signed?
What I want to do is to fill in a field if the user clicks a radiobox and the user signs the form doorwindow.
My radio boxes follow the pattern
Group name: Group 1
Name of choice: A, B, C, D
Field name digital signater: boss
Script project
If (Group1. A == {True and this.getField("boss') .signed)
this.getField("x").value = thisgetField("y").value
{
I know that the syntax is far away, but I'm trying to honor a task like thie described above.
You don't specify what type of field 'x', but assuming that it is a text field, you can use this code as the code customized for her:
{If (this.getField("Group_1").value == 'A' & {this.getField("boss").value! = ""})}
Event.Value = this.getField("y").value
} else event.value = "";
Be aware that JS is case-sensitive, so if the name of the Group of option buttons is "Group 1" and not "Group 1", you will need to change this in the script.
-
How to dynamically set the filter IR APEX of the value of a radio button column?
Hello
I built a simple APEX 4.2 IR report that includes column, namely "Source_Data" and a separate user to input radio button namly "P33_SOURCE_DATA" with two possible values in 'X' or 'Y '.
I would like the report filter source_data = 'X' or source_data = "Y" is applied, after each time the user clicks on the radio button P33_SOURCE_DATA. "
So my question is, how to set the value of the IR filter using the value of P33_SOURCE_DATA to the dynamic action and javascript?
Thanks in advance.
Concerning
Susanna
In this case, you can pull an onchange dynamic action on the radio, or at the click of a button.
This dynamic action update your IR region
And your IR region would have an appropriate where clause, with "Page to go" set on your radio.
-
A drop-down list can do the calculation based on the value selected in a drop down list?
Form Acrobat X Pro Adobe
Can I have a drop down list create a calculation based on the value selected in the menu drop-down?
We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "
It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.
If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.
The total area at the end of the line must keep a record of all 5 days and give a total.
So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00
Is it possible by using code or something?
I did it in Excel, but we need it is an Adobe pdf file.
TIA
OK the total box has a 10 all the time to make it look like $ 2.00 for
everything.
Before even that I chose something there are 10 in the box.
I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980
However.
Can you do any debugging in code?
Initialize the sum
var sum = 0;
Make a loop on the drop-down list boxes and add the cost of the invoice sum
for (var i = 1; i)< 6;="" i="" +="1)">
Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;
}
Set this field to the amount
Event.Value = sum;
-
Can the color of the text based on the value
I searched for a way to change text color based on the value fields
If Textbox =, then A will be blue
If Textbox = B, then B will be red
I just need help get the fi then code work, change of color after it is easy
Any Suggestions...
To change the boder, add the following script to the exit event:
If (TextField1.rawValue is "Desired value")
TextField1.border.edge.color.value = "255,0,0";
.
.For the fill color, add the following script to the exit event:
If (TextField1.rawValue is "Desired value")
TextField1.border.fill.color.value = "255,0,0"; -
Difficulty over the months in time Sun based on the value of as txt
Hi all
We have two text measures startmonth and endmonth, how can resolve us to the time dimension based on the values of these measures of text? Difficulty for example (Mar: dec)
Thank you
James
Hi James
I'm sorry, it looks like you may need to go on a training Essbase. As I said you can NOT SET on data which are entered.
You must FIX on all period member using something like @RELATIVE(YearTotal,0), then in your writing sets the IF statement as well as the data is calculated only at the period, you are at (The FIX on all periods will cover all periods) lies between the values entered by the user (i.e. the start month and end month values).
An example below is to say in the depreciation calculation.
"SYS_MONTH" is a member who places the VALUES against each Member period so that you can compare and match against the input values IE like VLOOKUP in Excel, then Jan = 1, Feb = 2... ***
DIFFICULTY (FY13, @RELATIVE("Product",0), @RELATIVE("YearTotal",0)) I do not know you other dimensions you are trying to calculate against so you should add them
"Depreciation")
IF ("Start_Month"-> "Input_period"-> "Input_Year"-> "Input_product" "Input_period"-> "Input_Year" <= "sys_month"="" and="" "end_month"-="">-> "Input_product" > = "SYS_MONTH")
"Depreciation" = xxxxxxxxxx Code to calculate depreciation;
ON THE OTHER
"Depreciation" = #missing;
ENDIF)
ENDFIX
Imaging you are in a worksheet with Jan, Feb, Mar in the upper part and in the left column, you have the beginning and the end of the month entries. Calculation will increase from left to right and IF his calculation period that is to say that the SYS_MONTH member is between the beginning and the end of the month (4 and 11 below) then the depreciation is calculated, if it is then #missing, or you can choose not not to calculate.
Input_Period Jan Feb Mar Apr May Jun Jul Aug Ms Oct Nov Dec SYS_MONTH #missing 1 2 3 4 5 6 7 8 9 10 11 12 Start_Month 4 End_Month 11 Depreciation #missing #missing #missing #missing x x x x x x x x #missing -
How to conditionally display images based on the values of the variables
I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.
I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.
Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.
Thank you
Josh
Hello
When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.
However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.
See you soon... Rick
Useful and practical links
Captivate wish form/Bug report form
-
Show/hide subform based on the value of digital field
Hi all
I created my first form in LiveCycle Designer, but jammed with coding. Any help would be greatly appreciated.In the attached form, based on the value of field digital "number Total points" (calculated from the user of entry), I want two things to happen.
The 'field' text should display different text depending on the points,- Less than 10 points is "beginner."
- 10-14 is "intermediate."
and just like that...
If the total number of points is less than 10, 'Course for beginners' and 'Language' DropDownList must appear.
Is there a way to do this? I tried posting 'If' 'else' statement, but it does not work. I looked in the previous discussions, but cannot find that anything will be based on the numeric value.
You are looking for assistance.
RThe joint responds to your needs. The JavaScript on the TextField1 calculate event anime.
Form1. #subform [0]. TextField1::calculate - (JavaScript, client)
If (NumericField1.rawValue! = 0) {}
If (NumericField1.rawValue< 10)="">
DropDownList1.presence = "visible";
DropDownList2.presence = "visible";
this.rawValue = "beginner."
}
else {}
DropDownList1.presence = 'hidden ';
DropDownList2.presence = 'hidden ';
If (NumericField1.rawValue< 15)="">
this.rawValue = "middle";
}
else {}
this.rawValue = "";
}
}
}Steve
-
Display a series of images on the stage based on the value of a variable
Hi all
Here's another interesting problem! Well, I have an interactive retention test which is charge of an xml file based on the value of a variable scenario (for example, if script = Architecture, then load Q_set 1, if scenario = history then load something else). Now, I would like to extent this and display a series of images on my stage which will be valid only in the current scenario. Here is my code so far. I thought load a list of images on the beginning of the film (for example, Architecture_list, History_list) and then call them according to the value of the variable of scenario, but I would like to hear what you have to say. Any ideas?The answer is a series of managers: one called at the beginning of the movie to fill the lists of the appropriate folders (based on the value of the variable gimage) and the other called next and previous. Here they are in case yu need:
---------
Global gFileList, gImagePath, gimageson buildList
gFileList =]
-defining the path to images:
gImagePath = "@images /" & gimages & ' / ' "»
Repeat with i = 1 to the maxinteger
thisFile = getNthFileNameInFolder (gImagePath, i)
If thisFile = EMPTY then exit
If thisFile = the movie then the next repetition
types of files = [".pct", ".jpg", ".bmp", ".gif"]
howManyTypes = count (fileTypes)
Repeat with thisType = 1 to howManyTypes
extension = getAt (file types, if thisType)
If thisFile contains extension then
gFileList.append (thisFile)
end if
end repeat
end repeatMember ("Display"). FileName = gImagePath & gFileList [1] - put the first image in the folder at the appropriate place
Member ("Display"). Picture = .photo member ("display")
buildList end
--------------------
Global gFileList, gFileIndex, gImagePathon nextFile
gFileIndex = gFileIndex + 1
If gFileIndex > count (gFileList) then
whichFile = gFileList [1] - set the image = in the last loaded picture holder
gFileIndex = 1 - the value of the index to the last trick questionMember ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage-go to the audio issues
_movie. GB (31)
on the other
whichFile = gFileList.getAt (gFileIndex)
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
end ifend
Global gFileList, gFileIndex, gImagePath
-----------------------------------------------------------
the backfilegFileIndex = gFileIndex - 1
If gFileIndex = 1 then
whichFile = gFileList [1]
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
Sprite (17) TRUE = FALSE - disable the "back" button-gFileIndex = count (gFileList)
end ifIf gFileIndex > 1 then
whichFile = gFileList.getAt (gFileIndex)
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
end if
end -
Is there an easy way to filter a 2D table based on the values in two fields?
Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:
Ident Frame Type bytes TimeStamp data
10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame
10:57:07.622 3AD00017 CAN data frame 8 000005E000000000
10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame
10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame
10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame
I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?
Thank you.
Hi chuck72352,
After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.
Mike
-
Name of the dynamic property of object in the table based on the value of a variable
I have two paintings of custom class objects
var obj1:Object1 var obj2:Object2 var array1:Array = [obj1[0], obj1[1], ...] var array2:Array = [obj2[0], obj2[1], ...]
Object1 has a property named. Name while Object2 has a property named. Title.
Now I have a common function including cab accepts an array (array1 or array2) and the name of property the object ("Name" or "Title") as input and needs to access this name of the property of the objects in the array:
function myFunction(arr:Array, fieldName:String) { arr[0].fieldName = "xxx"; }
the problem I have this achievement does not because the code in the function assumes that the property of that object in the table is actually a string "fieldName" while I want to dynamically determine the names of the fields based on the value of this variable, but cannot understand the syntax to do!
Don't know if I'm clear - hope that makes sense... ;-) Thank you
Hey p3pp3r,
I think I understood you. Try the following and see if you get good results:
function myFunction(arr:Array, fieldName:String) { arr[0][fieldName] = "xxx"; }
Let me know how it turns out. Good luck!
-
Element of change based on the value in LOV
I'm trying to disable the item (text box), based on the value of the LOV. And it doesn't seem to work.
Is it possible to see what is happening in the level of the events? The LOV is perhaps not "changing" ing?
Dynamically change the item values
Patrick Wolf-Oracle responded to the question - get the firebug.
Looking at the console I discovered that the returned of LOV value includes spaces. Resolved issues.
-
Apex 5 schedule: different color based on the value of data field
Dear Experts,
I need to have a different color for each record on the calendar based on the value of the data field (eg. category).
How can I achieve this?
Thank you!
See: -.
You don't have to wait for APEX 5 integration FullCalendar ~ Blog of Doug Gault...
-
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
Maybe you are looking for
-
Mail and gmail don't agree in the Sierra, once again.
I had resolved all the gmail against messaging problems in El Capitan, but after upgrading to Sierra problems are back. When I write and send an e-mail message, I find myself with a project in gmail attached to the messages thread which is waiting, d
-
Special characters: Angle symbol
Hi, I am trying to find the symbol 'angle' commonly used in mathematics (two lines forming an angle of 45 degrees, an acute 'L') The answer previous (linked) says to do the following -Edit -Special characters -Math (etc.) However, this is an old post
-
Possible start of toshiba windows 7 upgrade DVD?
Hello I can't connect to my "new" infer that bought L300 five weeks ago.no idea why, startupscreen comes as it should, but the connection does not accept my password There is no second account on it, so I can't use itthere where no installation with
-
I get an error of genres in avg updates
I'm running Vista premium and have Avg Free installed. It's been great, but now it does not update and when I try to run the update may not be due to a general error. They say there is something wrong with the Setup program. How can I fix it?
-
Cannot zoom in on picture Windows Live Movie Maker
Is there a way I can control zooming in on a photo and the progressive zoom on in Windows Live Movie Maker? I want to plan big zoom on a face and gradually zoom back to the overview. In the help topic it is said to use the icon MORE, but I can't fin