Return text based on a calculated score
I am a beginner with calculations of LiveCycle. I created a questionnaire that calculates a score based on the answers that a user chooses to drop downs.
Now I need to find a way to fill a field with a text based on the range of results. For example, the score calculated for the questionnaire is between 8 and 10, then I want to have a subtitled 'Risk Assessment' field, which should fill it with the text "High". If the calculated score added up to between 5 and 7, then "the risk assessment field must fill it with the text"Moderate". etc.
I have tried to understand this using if/then, but so far have had no luck. This is what I have so far - my two fields named "Score" and "risk".
If (Score.rawValue > =8) then (risk) == endif 'High'
Any help would be greatly appreciated.
Hello
One way would be to use the Choose function in the case to calculate if the risk on the ground, so something like;
// 1 2 3 4 5 6 7 8 9 10
Choose(Score, "Low", "Low", "Low", "Low", "Moderate", "Moderate", "Moderate", "High", "High", "High")
Concerning
Bruce
Tags: Adobe LiveCycle
Similar Questions
-
How can I add Auto text based on the value in the numeric field?
Need help... I'm trying to add the auto text to a text based on a value in a numeric field. I want my text fields (summary box) to say 'Success' if (box score) value is equal to 10 and say "is not good" If the value is less than 10. My digital field is calculated by selecting drop-down lists.
Thanks in advance for your help.
Ed Watson
Here is a link to the document that I created...
https://files.Acrobat.com/?TrackingID=KGLIT#folder/c3106c32-2e69-4a5f-8ef2-94d25623dbfb
Try this:
If (NumericField1.rawValue< 10)="">
TextField1.rawValue = "does not."
}
else {}
TextField1.rawValue = "passed."
}
-
Native SDK is suitable for text-based application?
I write an application based on the text for Playbook. I read the libraries and learning native SDK for the last days. Now I can't find an easy way to 'draw' texts on the screen of the playbook.
Please give me some pointers or suggestions.
If native SDK do not, let me know related libraries or knowledge that I need to look for.
If the native SDK is not appropriate, what development tool would you suggest me to use? HTML5 or something else? And why?
I'm new to this forum and new to playbook.
Thank you.
Native development kit is not really appropriate, unless you are ready to use the libraries of the add-on as the port of Qt, which is perhaps still a work in progress. The NDK for target now is mainly to games or other applications for which should be essentially generate UI whole 'manually '.
HTML5 can obviously manage text. So can air. I can't recommend one over the other, or any other environment for you, since "text-based application" is not really describe what you are trying to reach.
-
Cascade LOV display text (based on LOV) report clasic
Hi Experts,
It is possible to use cascade LOV - item is displayed as text (based on LOV) in clasic report? (Display AS)
I would like to refer to another column displayed in the report in LOV.
Example:
#PRIM_STATUS # is the column I would like to reference.select description d, val_strg2 r from domain_cntr where cntr_name = 'CH_PRIM_ST_NOTE' and val_strg1 = #PRIM_STATUS# and active_idc = 'Y'
Is this possible? IN THE CLASSIC REPORT
concerning
J :DHello
>
Is this possible? IN THE CLASSIC REPORT
>
Yes.It can one thing long enough to encode, so be prepared for that.
Here's how:
a. use the APEX_ITEM API in your report query. Be sure to only specify the p_item_id parameter, using #ROWNUM #.
b. in the LoV wrtie Parent a trigger of onChange event which triggers a JavaScript function and pass it the ID of the item.
(c) in this JavaScript function makes a call to get AJAX < select >... < option... >... < / select >, in short the full HTML of the child LoV
d. push this HTML fragment in the child Lov. You build the ID of the target based on the ID of the parent. E.g. f01_0001 to f02_0001.
e. you can further keep the invisible or disabled child initially and then make it visible/enable after it is filled.Kind regards
-
Display as text based on LOV a form
A column of report can have Apex 4.0.2 display type "display text (based on LOV). I don't know this type of display in a form, only "view only". However, that displays the code (for example, empno), and no description (ename). I don't want to use the list select or Popup LOV, because my article should not be editable.
Is there something like "Display text (function LOV)" in a form?
I know that I can make a point of non-base of data and use a SQL statement as a source, but that I can not re - use the existing LOV.Is there something like "Display text (function LOV)" in a form?
Before APEX 4.0 there was a display text (based on LOV, does not save the State) form point type. In 4.0, the variety of the types of items has been simplified and customization options the smaller number of types of basic elements moved elsewhere.
Set the properties of the element as follows:
H4. Name
Display: display only
H4. Parameters
Save Session State: No.
Based on: the display value for list of values -
Return specific text based on a percentage in another text box
Hi all
OK, got a head scratcher, and I'm sure it's easy for any experienced writer. Just not so easy for someone just to get into it.
I have a form that count percentage in the text box. Based on the percentage of return in this box, that I would like to return a permission level in an adjacent area. The table below gives you an idea on what I'm after.
Percentage Approval level 0-30% TEXT1 31 50% TEXT2 51 60% TEXT3 61 80% TEXT4 81 100% TEXT5 Any help would be appreciated.
Thanks in advance!
Okay, so that the custom field approval level calculation script you can use something like this:
var perc = this.getField("Perc1").value; // let's say the percentage field is called "Perc1" if (perc>=0 && perc<=0.3) event.value = "TEXT1"; else if (perc>0.3 && perc<=0.5) event.value = "TEXT2"; else if (perc>0.5 && perc<=0.6) event.value = "TEXT3"; else if (perc>0.6 && perc<=0.8) event.value = "TEXT4"; else if (perc>0.8 && perc<=1) event.value = "TEXT5"; else event.value = "";
-
Conditional display in the text box based on the calculated value
Hello
I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
The sum is displayed at the bottom of the document and is passed to another text box:
Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
The displayed word is based on the totals through this range:
1-2 = 'absorbing '.
3-4 = 'practitioner '.
5 to 6 = "control".
The script I used to pass the value from the left to the right text box in the chart above is:
name of the field to text box;
var cTextBox = 'Cabinet Talent strategy knowledge - total';
get the value of the field with the name in cTextBox;
var sTextBox = this.getField ("cTextBox") .value;
Set the value of this field;
Event.Value = sTextBox;
That I need to add to this script to show one of the words, such as "control" above?
I am a complete novice to scripting. I found the above script online and somehow got it to work.
I thank very much for any help or pointers, you can provide.
Best regards
Sorry, there were some errors in the code that I provided above. Try this:
If (sTextBox > = 1 & sTextBox)<= 2)="">=>
Event.Value = "absorbing";
} ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">=>
Event.Value = "practitioner";
} ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">=>
Event.Value = "master";
} else {}
Event.Value = "";
}
If it still does not respond, you can send me the file at [email protected] and I'll check...
-
change the field type selection list of text based on the data in the other domain.
Hello
We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.
Say, we have two fields
Day:
Products:
If day = 'Monday' produced a drop in low field of another product would be a free text field. Is this possible in APEX?
This is the configuration I did.
I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.
However, when I click on submit, it throws an error:
ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored
Kind regards
Satya
You can have both share the same database column, the process of the APEX DML does not know how to consolidate.
You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.
-
The PXI-4461 connections and text based programming
Hello
I looking for a guide-schedule based on text for the PCI card, / AO PXI-4461 24 bit. Currently, I am able to program it similar to the PXI-6259 but could not find a way to set it up as (differential, Pseudo-differentiel) in order to obtain the correct output impedance.
Is there a hardware (user) for PXI-4461 guide?
I use Visual c# to encode the PXI-4461. How can I determine the location of the classes and the specific methods for the PXI-4461.
Thank you.
Anand
-
How to hide the field element of text based on true or false cases in the oracle apex
Hello
I have a set of text field in the oracle apex:
- Order number
- Revision number
When we open the report, the review must be hidden.
Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.
If he enters the number of duplicate order, the revision number should be hidden.
Help, please.
Hi 2932464,
2932464 wrote:
Hello
I have a set of text field in the oracle apex:
- Order number
- Revision number
When we open the report, the review must be hidden.
Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.
If he enters the number of duplicate order, the revision number should be hidden.
Help, please.
Give you an example of how to do to get there.
Step 1. Create three elements of the Page
(1) P1_ORDER_NO - text field
(2) P1_REVISION_NO - text field
(3) P1_ENABLE_DISABLE_REVNO - hidden, protected value - no.
2 create dynamic Actions 3
(1) disable the revision on the loading of the page number
Event - loading of the Page
Action - disable
Fires when the result of the event is - real
Selection type - point
Point - P1_REVISION_NO
(2) check the number of duplicate order
Event - change
Selection type - item (s)
Article (s) - P1_ORDER_NO
Condition - is not null
Action - to execute the PL/SQL Code
Generate in front of false action - not checked
Fires when the result of the event is - real
Fire on page load - disabled
Stop execution on error - checked
Wait for the result - verified
PL/SQL - code
declare l_count number; begin select count(*) into l_count from emp where empno = :P1_ORDER_NO; if l_count > 0 then :P1_ENABLE_DISABLE_REVNO := 1; else :P1_ENABLE_DISABLE_REVNO := 0; end if; end;
To present the page = P1_ORDER_NO
Page referred to return = P1_ENABLE_DISABLE_REVNO
(3) enable and disable the revision number
Event - change
Selection type - item (s)
Article (s) - P1_ENABLE_DISABLE_REVNO
condition - greater than or equal to
value - 1
Action - disable
Fire on Page Laod - disabled
Generate the opposite action of false - verified
Selection type = item (s)
Article (s) - P1_REVISION_NO
Hope this helps you,
Kind regards
Jitendra
DER_NO
-
Change a text based read-only to writable field on Drop Down selection
I have a drop down list named "Terms of payment", there are three selections "Net 30", "45" Net, and 'Other' if the user selects another there is a text box that is read only format named "OPTDescription" which should be changed to read only write. " In this text box, the user will describe other terms of payment.
I tried to reuse the code I received previously for radio buttons, but it doesn't seem to work. Here is my code:
CHANGE A FIELD TO ONLY WRITABLE BASED ON MENU DROP DOWN
var f = this.getField ("OPTDescription");
{if(Event.Target.Value=="Other")}
f.ReadOnly = false;
f.fillColor = color.white;
} else {}
f.ReadOnly = true;
f.fillColor = color.gray;
}Make sure you only check the option to validate the value of the field drop-down immediately (under its properties - Options), and then use the above code as its custom validation script. Just change event.target.value to event.value .
-
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"; -
Limit the number of characters in a text based on the first digit field
Hello and thank you in advance for your help!
I want to limit the amount of characters in the text field based on the first digit of the number (the text field is limited to a number format... no decimals, no comma).
For example, if the number starts with a 3, I would limit the text field to allow only ten characters. I have three scenarios but if I could start with code and what is the best place to add (key combination or validation?) I can take it from there. Thanks again for your help!
I wrote this code for you that does this. Use it as a typo of the custom field code:
// Validate that only digits are entered if (event.change) { event.rc = /^\d+$/.test(event.change); } // Validate string length if it starts with 3 if (/^3/.test(AFMergeChange(event))) { event.rc = AFMergeChange(event).length <= 10; if (!event.rc) app.alert("If the number starts with \"3\" it may not be longer than 10 digits.",1); // optional error message }
You can duplicate the second part of it for additional terms, but keep in mind that this code won't let you even remove the first character in the field if the result is not valid.
For example, if you enter "234567890123456" then you can't remove the "2" at the beginning because that would result in a number not valid. You can delete all the other numbers, even if and when it is 10 digits or less, then you can remove the departure "2" as well.
-
Disable or enable a text based on the recorded person field.
I have a requirement in a form based on an Oracle table. If my manager opens the top form, he could enter a value in a text box. But if employees open the same form that they could see the text field but cannot change the value in the text (i.e., its registered status and disable) box.
Please suggest me what I do? Enjoy it!
Thank you
NSHow you are authenticating users? You can install plans permission to hide and show elements, or you can set read-only properties.
-
Selection of text-based characterAttributes
This is a newbie question, and Illustrator scripts guide is terrible. I am struggling with the basics.
All I want to do is select all text with a horizontal scale of 94.62%.
Here's what I'm trying:
myDoc = app.activeDocument var
var myText = myDoc.textFrames
var properNames = myText.characterAttributes.horizontalScale [94.62];
properNames.selected
but I get the error "no element of these.
Of course, the correct code would be great, but I really hope for more help to understand why my code does not work. I really need to understand such things. TIA!
You are welcome
toFixed (2) force the number to 2 decimal places. I had to use it because Illustrator returned to 94.619999999999999 and I get no matches.
a = 10 / / 10 a re-branded
a == 10 / / 10 in order to compare one
Maybe you are looking for
-
GarageBand projects on external drive
Can I create GarageBand projects on an external drive and work on them from this external hard drive? I'm considering the purchase of a G-Technology 2 TB G-Drive for this. The main reason to use an external hard drive: running out of space! Thank you
-
Satellite A30 hard drive upgrade
Hello I would like to know if there is a panel that is easy to open to upgrade the hard drive? If not, then how to open Notepad in order to improve memory? MUCHAS gracias...
-
Satalite L500-1R3 red lines appear at different locations, watching movies on TV
When im connected to my computer laptop hd tv with hdmi cable when watching films, there is a red line that appear in different places all the time the film is going.Sometimes, they would change to blue line according to the colors in the movie.Also
-
How to play music through the bluetooth earpiece/headset
Original title:I HAVE CONNECTED MY HEADPHONE BLUEDIO AV890 WITH MY PC... BUT HOW CAN I HEAR MUSIC FORM MY PC THROUGH IT... I CANNECT THE BT HEADSET USING PASSKEY... BUT I DON'T KNOW HOW TO PLAY SONGS VIA HEADPHONE BLUETOOTH, SOMEONE CAN HELP ME
-
Which of my sata ports should I use?
I have this hard drive [http://www.amazon.com/gp/product/B00471G8CC/], but I want to make sure that I use the best sata port. My office is the CQ5720F, here is the link to the plug to motherboard [http://support.hp.com/us-en/document/c02552467] He sa