Conditional rows and/or columns using css (flex, grid) - css

In my project I have section in form, that can have several fields depending on request result from api. It can display from 1 to 4 fields. According to design system, if there are up to 3 fields, they should be displayed in exactly 1 row, but if there are 4 fields, they should be placed in 2 rows (2 fields per row). I'm wondering if there a smart way without using javascript, to place them in compliance with design system.
https://i.stack.imgur.com/xQ1Gr.png
https://i.stack.imgur.com/tRj7i.png
I've search uncle google and I found few examples of auto placement with css grid, but all of them are placing items in fixed row size which is not that I'm looking for

Related

Custom Google Analytics report that displays number of specific events fired per page

For a given page I fire four events based on how much of a post they consume (ArticleLoaded, StartReading, ContentBottom, PageBottom).
What I'd like to do is:
A) Create a view with 5 columns: Page title, and then one for each of the four event (Title, Load, Read, Content, and Page Bottom)
B) If possible, create a custom 6th column that simply divides Load by Content Bottom to give me a completion percentage.
I can load a simple view that has each event broken up but I can't seem to figure out how to compress the view so I can list all 4 (ideally 5) values on the same line horizontally.
Sadly you can not do this with custom reports inside google analytics.
My best advice is that you export in CVS the report and work it out in another platform (Data Studio, Klipfolio, even a simple spreadsheet may be good).
EDIT: I was assuming you don't have Analytics 360, if you have then yes you can but idk how.

How to find the ID of a specific field in Qualtrics without previewing?

I'm working on a survey in Qualtrics, and am needing to make certain fields readonly (I'm currently doing this via $j("#QR\\~QID186\\#1\\~14\\~1\\~TEXT").attr("readonly", true); for any IDs I know).
I'm currently getting certain IDs by previewing the survey in my browser and inspecting the element - no problem (as pointed out in their documentation). This is working for most fields, except ones with a lot of display logic on them. The display logic is taking into account previous answers and doing calculations on them - it's a little obfuscated as I don't know the content of the survey that well. So for these fields, it's incredibly tedious just to get the field to display in the first place by manipulating my input data.
It doesn't explain if it's even possible in their documentation, so it may be a long shot, but is there actually a way for me to get the ID of an element if I'm only in the "Edit Survey" section of Qualtrics, without having to preview it?
In the top right corner of the Qualtrics screen where you have your name, the drop down from that allows you to look at account settings. Once in this menu, you can select "Qualtrics IDs" in the Grey Ribbon. From there select the survey you want to examine and a separate window will pop up with all the Question IDs associated with that survey.

How do i combine multiple fields from a view into one hyperlink?

Im sorta stuck on an issue. I have one view where i am displaying 5 fields under an image. These fields are all clickable links or I have explicitly declared them as links.The problem:
I need to combine each field/link into one link. I tried the "Combine Filter" but when i try to combine 3 of the 5 fields i have exposed. the whole view disappears from the preview screen in the View screen.
Is there's something that i could do leveraging drupal or should i use jquery/JavaScript to tackle this?
Thanks!
It would be helpful if you said how you wanted combine them, so I will assume it is similar to the same way I often do.
Views has two checkboxes that you will want to use for this. 1 is the Exclude from Display at the top of the field setting, and 2 is the Rewrite Results > Rewrite the output of this field.
Assuming one field is the the path, two are taxonomy or something, one is the words you want for the link, etc... Either pick the one that links directly where you want it, set it as the last field of the five, and exclude it. Or it does not really matter what order, and just exclude the first four fields of the five. What Exclude does is tell the view to fetch the value, make the token available for you, and not impact the display.
Then in the fifth field you use that Rewrite option. A textbox will appear and below it is the list of available tokens to use. Then you construct the one link that you want composed of the five fields:
`<a href="[field_path]" class="[field_taxononmy] custom" title="[field_example]" >[field_taxonomy] [field_words]</a>`
As they say in the #drupal-support irc, more details will get you a better answer.

SSRS How to Extend a Tablix till the End of the Page?

I am working on a Purchase Order report. now there is a requirement that totals and department name, manager signature etc should come at the bottom of the page. In SSRS it seems to be impossible to attain such a design. Things i have tried
Put empty rows in dataset but some items have name that comes in two
or three lines so addition of empty lines is disturbed and total is
coming on undesired place.
Manipulated borders and put lines but they
don't appear on the second.
Put totals and signature etc in footer
and show footer only on last page, but pages before the last page
have that unwanted empty space.
Tried to set the height of the footer dynamically to set the height to 0 on pages other then the last page but couldn't find anything related.
Please anything i missed or any suggestion to solve the problem would be deeply appreciated. Thanks
The easiest would would be what Abdul suggested, I'd have thought. Add a page break after your table, then on the last (blank) page position the text boxes exactly where you want them to go, with formulae summing the required fields over the dataset on which the table is based. The only drawback of this approach is the end of the table and the totals and footer textboxes will be on different pages.
If this really isn't acceptable (and it's by far the easiest option), then you need to include your totals in the report footer, and set a property for this to have a page break immediately before it. Not certain if this is possible (and SSRS isn't running on my machine at the moment, so I can't test this).

rss feed in EBSCO igoogle

I am setting up RSS feeds for searches and journal alerts from the EBSCO
database in iGoogle. The widget only allows three results on my iGoogle page
but I might have 10 or 12 articles or results that should be fed into the spot.
EBSCO said I had to edit the html code to a number larger than 3. However,
the code is lengthy and I don't seem to find a number three to edit.
Has anyone done this?
The basic gadget that google provide by default displays only the latest 3 items. There is a preference that every user has to display up to 9 entries, but we leave this up to the user to decide.
It is relatively easy for you to develop your own gadget that display your RSS feed with more items.

Resources