Is it possible to show/hide something on the car (registration - buy) page that is based on the name or the productId?
I need to show some of my form of payment based on the name or the productId. I have 2 types of products, family and individual. If they have product in the family is selected they need to add dependent information.
I was able to do this based on the total. Amount but it is a product that has the same price as a product of the family, so it won't really work for me.
{% If globals.cart.totalAmount is '165.40' or globals.cart.totalAmount is '22.95' or globals.cart.totalAmount is "249.40" or globals.cart.totalAmount == "29.95" %}
I have the following available on the payment page:
'basket': {}
'itemCount': 1.
'Amount': 165.40.
"countryCode": "US", he said.
"currencyFormat": "$."
"items":]
{
"id": 7155959,
"productId": 9712238.
'catalogId': 191952,
"name': 'Combo Plan - annual family Plan."
'code': '73VNVW7RI9 ',.
"description": ","
'Price': 155.400000,
'quantity': 1.
"totalPrice": 155.400000.
"smallImage": "/ _assets/img/products/dbm-family-annual.png"
"url": "/ store/dental-benefits-max-family-plan-annual-1".
}
I don't know how things to access points. I tried globals.cart.items, globals.cart.items.code etc.
Store is located here.
http://uGuru-dentist2015-us-nov62015-826.BusinessCatalyst.com/store
Hi James,
You're right, the points are located inside the globals.cart.items
{{ globals.cart.items | json }}{% assign NomTableau = globals.cart.items | map: 'name': json-%}
{% assign idArray = globals.cart.items | map: 'id' | json-%}
{% If NomTableau contains 'Unique string name'-%}
Found the name
{endif %}
{% If idArray contains '9712238'-%}
Found the id
{endif %}
Map filter is very useful in these situations, it generates a string of property of an object.
Hope this helps,
Stoiky
Tags: Business Catalyst
Similar Questions
-
Show/hide region when the drop-down list is changed
Hello
I need show/hide a region when dropdow (selection list) is changed.
I used dynamic action:
Event : change Selection Type : Item(s) Item(s):P50_my_list condition : JS expression $v('P50_my_list') == 1 True Action : Action : Execute JS Code Code : $('#region_name').show(); // OR use Action ==> Show
False Action : Action : Execute JS Code Code : $('#region_name').hide(); // OR use Action ==> hide
But the region has still shown!
Also, I used a JS function (in the dynamic action of the place) but I met the same result.
function showHideRegion(pValue) { var show_or_hide = $x(pValue).value; if (show_or_hide == 1) {$('#ALTERNATIVEN_LIST').hide();} else {$('#ALTERNATIVEN_LIST').show();} }
-
Show/Hide button on the line on a tabular presentation depend on the values of line.
I want to show/hide (or toggle so easy) a button link to page of line on a dependant in a table on the other line values.
For example if I had a table, built form using the form wizard based on the EMP table with a query: -.
Select
EMPNO,
EMPNO EMPNO_DISPLAY,
ENAME,
EMPLOYMENT,
BISHOP.
HIREDATE,
SAL,
COMM,
DEPTNO,
'button' but1
from EMP
The column of buttons is used as a link to a page. But I only want to be displayed/activated if the WORK is a "SELLER". Does anyone know how to do this? Or give me any suggestions?
Another option would be to have a button under the lines enabled/disabled depending on when you click on a line and this line having a JOB "SELLING."
Thanks, PeteThen - under condition - select the exact anchor (+ image) of your select statement (and display it as as a standard report column).
(Unfortunately) does not allow any conditional display for a link (or a link element) in a tabular form (in the current version, should be a nice improvement however). -
Is it possible to show/hide a layer in all the files in a book?
Hello
I have 5 catalogs organized in a book, everything is in 10 languages, each language is the separate layer. Each book has between 30 and 80 Indesign documents.
I need to edit and print 4 of these languages and manually change the viability of layers is not a good idea for me because of the possible error.
Is there a way to switch layers/languages to occur at the same time?
Layer names are the same in all documents.
Thank you in advance!
Check out this post InDesignSecrets: http://indesignsecrets.com/forum/general-indesign-topics/any-way-to-synchronize-a-book-to-tour-onoff-couches
(Yes the guy in the picture is me ;-)
-
Show/hide media download on Web App Details Page
Is it possible to display a Web App List View and detail to the public view BUT hide a download of media that is on the display page of detail behind a registration form protected area? The idea is that when people submit the form, they see download media.
I have normally introduce visitors to the Web site with a list of items in the Web application view and hide the detail view behind a Secure area registration form. The disadvantage of this approach is to 1. potential subscribers are limited to the amount of info provided in 2 and the list view. You cannot advertise the link to the page to display the element a Web App detail which, in our situation, acts as a landing page to promote an e-book.
Hey,.
The best way to achieve this might be something in this direction:
1. attach the download items support
2. do not secure the webapps
3. on the details page for webapp, using cash, check if the currently logged-on user has access to the secure area and if so list media download. Otherwise, display a form "register now to get access.
Here's how to get the secure areas from which the current user has access to- the secure areas of the logged in user has access to that list
Kind regards
Mihai
-
Dynamically show/hide columns in the reports of the IR
Env
RDBMS: Oracle XE 11.2
Request Express 4.2.4.00.08
Hi all
I am bulding an open source oracle apex app to track aircraft using ADS - B technology.
I have somes types of units. for example (kilometers, miles, knots, feet and metres).
So, in the report of the IR, I want pick capable of showing a unit in time.
For example
Radio Group.
Ground speed: (*) km/h () Mhp (Knt)
Vertical speed: (*) ft/s (m/s)
Can anyone help to build a code or point a direction to get above result?
I tried already a thread, but did not work.
Apex: Display/hide report column with Radio button. 2 cents to Oracle by Christoph
Display / hide column IR dynamically
I have a limited knowledge of Oracle APEX.
Levi Pereira says:
I am bulding an open source oracle apex app to track aircraft using ADS - B technology.
I have somes types of units. for example (kilometers, miles, knots, feet and metres).
So, in the report of the IR, I want pick capable of showing a unit in time.
For example
Group of radio buttons.
Ground speed: (*) km/h () Mhp (Knt)
Vertical speed: (*) ft/s (m/s)
There are different ways to do this. Probably the easiest would be:
- Create lists of values (LOVs) for units.
- Add the elements of the Group of radio -based unity LOVs report interactive region (IR), by specifying one of the units as a default value.
- Present the radio group via the Items property of the Page to send IR region.
- Create multi-column report for each metric combination / unit.
- Control the display of the report columns (applies to IR, but also classic report columns) conditionally using value of element in the Expression 1 = Expression 2 conditions Expression 1 is the group element of relevant radio and Expression 2 unit LOV value corresponding to that used in the column of the report.
- Add a dynamic action on the evolution of the components of the radio to refresh the IR region.
A less obvious approach would also use LOVs, group radio elements and dynamic action of change/update as above, but only have one column for each measure in the report. The column value is calculated using an expression based on the value of the radio group, for example:
. . . /* Assuming base speed unit is km/h */ ground_speed * case :p1_ground_speed_unit when 'mph' then 0.621371 when 'kn' then 0.539957 else 1 end ground_speed . . .
The unit could be indicated in the column heading in the report referring to the element of the device by using a substitution of static text string:
Ground Speed (&P1_GROUND_SPEED_UNIT.)
-
Examle: I looking for a piece attached to a particular sender - in 3 seconds I with the thunderbird electronic-mail-search a list with all the messages from the special sender, but I do not see what emails contain attachments. If I could choose the column 'number of attachments' it would be useful: 0 = there is no attachment, it is foolish to click and open it: 1) I have to close this bad-opend-window and 2.) I return to the search results window because now I'm in the thunderbird main display. Some companies still send their logo like attachment = no problem: once I opened an e-mail-results of research I can see: oh, they always send a logo, so I have to search for emails with attachments 2 and so on. (Please excuse the word "sick" in my question: I'm not very good in English, the line was so short, and I did not know that I can write the details too.)
Try this add-on: http://attachmentcount.mozdev.org/index.html
-
[SOLVED] Show/hide options in af:navigationPane
Hello.
I use JDeveloper 11.1.1.7.0
I followed this tutorial http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_43/jdtut_11r2_43.html to create a menu of left of base and clear in my request.
This tutorial shows moving to other topics, but I have created a simple menu on the left, with a list.
I haved created one unlimited workflow, drag and drop a wildcard character, then the views, then the control flow... It works perfectly
In the JSF model, in the left side, I have this code:
<af:navigationPane id="pt_np1" hint="list" value="#{supervision_menu}" var="supervisionInfo"> <f:facet name="nodeStamp"> <af:commandNavigationItem text="#{supervisionInfo.label}" id="pt_cni1" destination="#{supervisionInfo.destination}" action="#{supervisionInfo.doAction}"/> </f:facet> </af:navigationPane>
I need an advanced feature, and I want to show/hide some options, based on a parameter.
I need to run a display with this parameter object, process the results, in order to get to know the options that could be shown or hidden.
So, my questions are:
- How can I force to run this control as the first step of this flow?
- In menu.xml and af:commandNavigationItem, we're visible attribute. Where should I put the condition?
Any help would be much appreciated. Thank you
Hi user,
I was about to give you this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/48-sitemenu-protection-169190.pdf talk here about what you need to do. However, since you are not allowed to change the approach, you need access somehow to the UserID and ExecuteWithParams your 2 viewObjects with the previously created and applied ViewCriterias based on the user ID. After that, I don't know how you can use the visible property of the menu.xml, but if you can get your hands on your ViewObject attributes then you will need to make the comparison to show/hide according to the role.
-
Scripts to show/hide all all buttons
First of all, thanks to William Van Weelden and Peter Grainge for existing scripts ' show all / hide all. Peter, I accessed them from your web site (Scripts for Twisties, show all / hide all buttons print and). I was able to get two buttons of William script to work. I wasn't able to get the script "button toolbar unique show / hide" to work. Peter, your website says that the script works with HR 8 and 9. I'm hoping to use it with HR 10; I tried without success. What's someone to update this script for HR 10? I would really like to be able to use that one in the toolbar. I also experimented in vain to try to call WIlliam ShowHide and ShowAll functions since the Action tab of the custom toolbar window, accessed from the WebHelp skin Editor. Open to suggestions. Thank you!
You can try the toolbar scripts: http://www.wvanweelden.eu/product/webhelp-pro-toolbar-scripts
Are you running the WebHelp locally on Chrome? These buttons only work on Chrome when aid is placed on a web server.
-
Dynamic action - show/hide area based on LOV that returns the ID
Hi people,
This should be simple, so someone who works with dynamic actions.
I have a LOV based on query below:
Agenda: P200_KOD is based on LOV that displays KOD and returns the ID.select OBJECT_ID, KOD from x_data x; retuns: ID KOD ---------------------------- 492961 BMW 492964 VOLVO 492960 MERCEDES 492963 VOLKSWAGEN 492959 SKODA
On my page, I have also 1 region called TEST_REGION.
I want to put in place a testament of shich dynamic action SHOW/HIDE a TEST_REGION based on the value selected in the order of the day: P200_KOD (LOV). Region should be shown if displayed (KOD) selected ID value begins with '% V '.
By other words, if following query returns any folder, then the SHOW, HIDE it on the other:
How can I define a condition of dynamic action fires, for article: P200_KOD?select * from x_data x where x.kod like 'V%' and x.object_id = :P200_KOD;
Thank you
TomasHello
One way:
Create an advanced dynamic action.
Name: Region to hide
Event: change
Selection type: item (s)
Items (s): P200_KOD
Condition: Expression of JavaScript
Value:$(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"
Action: hide
Fire on the Page loading: true
Hide all items on the page on the same line: No.
Action of false: show
Fire on the Page loading: true
Display all items in the page on the same line: No.
Selection type: region
Region: TEST_REGIONKind regards
Jarihttp://dbswh.webhop.NET/dbswh/f?p=blog:Home:0
-
Remove "show/hide TOC" in iframes
I use RH9 to generate webhelp and uses iframes on almost every page of my project and thus I need to divide the pages in coloumned tables.
My problems:
one) I want users to have access to the table of contents and glossary, I created, but the mess of navigation page to the top of my alignment of the table. The obvious solution is to hide the table of contents by default at startup, but none of the tips I found (including Peter Grainge) to modify the js files to make this work for me. The best I could do is settings use webhelp HR integrate the show/hide text at the top of each page.
(b) Unfortunately, the text to show/hide appears in each topic in the IFRAME, as well as on the pages of the main topic. Users who click on these links in an iframe lose the window of the main topic.
Then, I can hide the default navigation getting started page and can I selectively incorporate a text to hide/show on the pages, except those iframes? I don't mind doing so manually if necessary. I understand that I could place the subjects I want to display in outdoor iframes to the project, but I would rather not since that affects the portability from one server to another.
Thanks for any help. John
Hi John,.
To hide the navigation page, follow these steps:
(1) before generating the output of WebHelp, exploring to the! SkinSubFolder! folder in your project folder and open the skn (to be used in the output) file in a text editor and modify it to , as shown in the screenshot below:
(2) the output and observe that this navigation page must be hidden by default.
If you want to insert to show/hide only selected topics, I'm afraid you must do it manually.
For letting us have the best overview of your condition, you can also share a sample project with the necessary details such as your desired output.
Please perform the following steps to share the project-
1. click the button register to sign up for a free account at http://acrobat.com.
2. Once you log on to your account, download the project.
3. once the project is transferred, please share with us.
(File sharing option is available in the lower left corner of the page as an option for specific files).I hope this helps.
Thank you
Aditi -
Show/hide HTML area with click of a button
Hello
is it possible to show or hide an HTML region if o want to use a button to hide or show the region?
Can anyone explain it to me?
Thx for all
René
Hi René,.
You should be able to create a new button on your page, and you can define the Action of this button to "defined by the dynamic Action.
Then when you are in page editing mode, you can create a "dynamic Action" declaratively without writing javascript.
Follow the steps, something like:
Action: click
Selection type: button
Real Action: (or hide)
Assigned items: region
Did you give the dynamic action a go?
Amanda.
-
Show hide columns generates error on the page if not found data
Hello
Has anyone ever encountered a situation where a page error when using the feature show hide column and no data is returned.
My region to report is based on SQL and when calling at the start page or when restrictions are no match all all the data that appears is the message "No data found" by default. The method used, I pulled Carl Backstrom (RIP) application.
< script type = "text/javascript" >
function html_HideBasedOnCheckBox (pThis, pThat) {}
if(pThis.Checked == true) {}
html_ShowCellColumn (pThat);
} else {}
html_HideCellColumn (pThat);
}
}
function getCellIndex (pRow, pCell) {}
If (document.all) {}
for (var i = 0; i < pRow.cells.length; i ++) {}
If (pRow.cells [i] == pCell) {l_Count = i}
}
} else {}
l_Count = pCell.cellIndex;
}
Return l_Count;
}
function html_HideCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_HideElement (l_Rows.cells [l_CellI]);
}
return;
}
function html_ShowCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_ShowElement (l_Rows [i]. Cells [l_CellI]);
}
return;
}
< /script >
The attributes of HTML form elements is: onclick = "html_HideBasedOnCheckBox (this, this.value)" "
The LoV for this box is static for a column.
This set works very well if the data is returned. It must have something to do with the topics defined in the SQL code and therefore are not displayed when no data is returned. The code is then try to hide or something that does not exist.
The part where he falls is during the setting of the variables:
function html_HideCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
... and more specifically the last variable setting: l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
Does anyone know how I can get around this by using the method of SQL report i.e. Select col1 col2 "Column 1", "column 2" From myTable etc. or if it is possible to make up for it at the beginning that is
If NO_DATA
then
dont_hide/display_any_columns that_dont_exist
on the other
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_ShowElement (l_Rows [i]. Cells [l_CellI]);
}
return; ........
???
See you soon,.
MikeHi Mike,.
In fact, you can check the existence of the cell:
var l_Cell = $x(pId); if (l_Cell) { rest of the code to hide the column }
As long as l_Cell makes reference to a valid page element, then the if test passes and the rest of your code can work.
Andy
-
Is it possible to show find Panel in edit? Version 3.6.1 (El Capitan)
I upgraded to El Capitan of Snow Leopard (seamless and smooth).
Now, in numbers, there is no option for "Show find Panel" in the title of the edition.
There is an option to "Hide the find Panel", but it is grayed out.
I use this function SEVERAL times a day, not really need.
If I can't get this to work, will have to focus on the decommissioning of the numbers, if possible, or using a different spreadsheet.
Thank you!
Hi robert,.
Edit > find > find... what you want? It persists for me and I can close it with the x-point or "hide the find Panel.
Quinn
-
Show/hide fields based on T/F control - only showing or hiding, not both.
Hi Forum,
I'm looking to show/hide fields address based on a T/F control (or a single entry check box).
My online form has a number of business address fields, a T/F control and a number of postal address fields. I want the mailing address fields to hidden when a user clicks on the box 'As Above' (and demonstrated once again if they click this box once more).
I used the sample code (https://docs.oracle.com/cloud/latest/process_gs/CPRCW/GUID-F3BD3386-F333-45C6-AA56-C77136D169E5.htm) as a starting point for my Web form rule and it works as expected the first time that a user clicks area T/F (i.e. He's hiding the post fields) but it does not work the second time they until it clicks (where I assumed that fields would still be visible).
The T/F box has the following options:
true = as above
false = No
And my web rule looks like this:
If (AsAbove.value = true) {}
PostalAddress.visible = true;
PostalState.visible = true;
PostalPostCode.visible = true;
} else {}
PostalAddress.visible = false;
PostalState.visible = false;
PostalPostCode.visible = false;
}
I tried the same thing (with similar results) using a Checkbox control with a single option (according to the example code)
If (PostalAddressCheckbox [0] .value == 'As Above') {}
PostalAddress.visible = true;
PostalState.visible = true;
PostalPostCode.visible = true;
} else {}
PostalAddress.visible = false;
PostalState.visible = false;
PostalPostCode.visible = false;
}
As verified does not seem to be supported, is there another way to accomplish what I'm after, or I missed something somewhere simple (and y at - it documentation on the T/F control)?
See you soon,.
James.
Hello
Web Forms address these true-false as the boxes and, as such, in the form of tables.
You can see if you try to print the TrueFalse value. You should get something like java object lang @XXXXXX
Try to put the code as follows (in bold and underlined):
If (AsAbove[0].value = true """""") {}
PostalAddress.visible = true;
PostalState.visible = true;
PostalPostCode.visible = true;
} else {}
PostalAddress.visible = false;
PostalState.visible = false;
PostalPostCode.visible = false;
}
This should do the trick
See you soon
José
Maybe you are looking for
-
Dead zone near the top of the screen in Safari? Cannot use Safari to log even here, because the login box is at the top. Virtually all of the fields near the top are dead. I have no problem going into the fields to halfway to the bottom of the screen
-
Can Tecra A6 - I put the graphics card?
I have a Tecra A6 A60E (171) with 1 GB of memory and the Intel 950 Express video chipset attached to max memory 128 MB useage. Is it possible at the level of allocation memory 256 MB max or install a graphics card? Shaun
-
How can I randomly select from a set of number without that breed?
Hello I am creating a module on randomization without replacement. I chose the size of the sample to 10. in other words, there will be ten trials. the number range is 1 to 10. It cannot be that then happen to pick random numbers. I am able to choose
-
envydv6: my pc is not responding
my pc is not responding and became dead slow. It takes 10 minutes just to start and after that, a blue circle is on the screen. I have a backup of my data to my external hard drive. I want to know is the formatting and if I format it, can I get my dr
-
How can I activate the Groove GFS Browser Helper Publisher name?
When I hit activate, it does nothing.