Gravity form show form dynamically - gravity-forms-plugin

my question I'm sure is a simple one but one that I am completely stumped on.
I have 4 gravity forms say, ID1, ID2, ID3, ID4.
I want the user to select from a dropdown which area they want. There are 4 areas. So if they choose Area 1 in the drop down,I want gravity form ID1 to load dynamically below the drop down.
If they choose area 2, then gravity form with ID2 loads etc. You get the picture.
Is there a very simple solution to this please?
Thanks

Depending on what your forms are - I would simply make one form with the 4 forms in it that display VIA conditional logic. The first thing (and only thing) you see is a drop down to choose options ID1 to ID4 and then based on that selection the conditional logic allows the parts of that form to be displayed.

Related

With Gravity Forms, how do I make a form entry count as 2 entries based on a boolean?

I'm working on an event registration form with Gravity Forms. The event needs to be limited to X amount of registrants. Gravity Forms gives us this ability under the "Form Settings > Restrictions > Limit Number of Entries" section. As expected, each form filled out counts as 1 entry.
However, this form also has a "Bringing a Guest?" boolean (Yes or No radio buttons). If "Yes" is selected, I would like the form submission to count as 2 entries. How can this be done?
Rather than using Gravity Forms built-in entry limits, you might consider using a snippet I wrote which adds support for inventory to your Gravity Forms fields. More details on the other side of this link:
http://gravitywiz.com/better-inventory-with-gravity-forms/

Showing comparison across groups in tooltip Tableau

I have a dashboard that lets users compare a company selected from a drop down menu (Company A) to another company chosen from another drop down menu (Company B). This then displays stacked bar charts (5 categories) by year. I want to build a tooltip so that when the user hovers over one of the 5 categories in either set of bar charts, it shows a comparison of that category between Company A and Company B. Is this possible, and if so, what is the best way to do this?
My previous answer showed a different approach for the problem without using too many workarounds. This answer will try to give exactly what has been asked.
First thing to understand is that you can't have the values for two different companies if you're filtering to show only one company. That means you'll need to circumvent this by filtering directly on the field.
Step 1: Create the new parameters that will be used as filters.
You want to create two parameters called "Company 1" and "Company 2" that will be used in each view to filter the company on the graphic.
Step 2: Create the new measures with the filter directly in the field.
Now you should create two new measures from your main measure, each one filtering one of the companies accordingly to the parameter, e.g. Sales Company 1 and Sales Company 2.
Step 3: Create a field with the variation and add it at the tooltip mark.
Simply enough, you want a calculated field with the difference between them:
SUM([Sales C1]) - SUM([Sales C2])
Step 4: Update the views and dashboard
Change the measure in each of the views for their following specific measure field, and remove the Company filter. And in the dashboard, substitute your usual filters to the parameter (which will be used to filter both views).
By assuming you have a dashboard with two views, you'll be filtering the [Company] in both of these views, making the value of another company not available to be shown at the tooltip.
If you're not using it yet, you could try a new approach and see the variance between companies by using the Color mark. By adding the [Company] as color, you could turn the Stack Marks off and add the second company in the filter to be able to visualize the difference.

Dynamic Number Of Inputs In Form

This is supposed to be something very common in access: Say you have a table Employees with a many-to-many relationship with a table Workdays. As in, A day of work is a record in Workdays, and for any day of work there can be multiple employees who worked that day (Which is shown with a third table, I think it's called a junction table?).
Now, say you want to create a form that the user inputs the employees who worked on a certain day. There is a changing number of employees per day, therefore a changing number of text boxes/combo boxes to input the employees in.
I want to ask if there's a conventional/convenient/acceptable way to do this. I've thought of 2 ways: Having a certain maximum number of text boxes invisible, and every time one receives input set the visible property on a new one to Visible=True, and second way by using the CreateControl method. Both ways seem a little pointlessly complicated for something that should be very common.
You don't have to mess with dynamically creating or showing/hiding individual controls. All you probably need is a main form for the Workday with a Subform Control for the Employees who worked that day, something like this:
Design View:
Form View:
The subform control contains a Continuous Forms form that is bound to the junction table [TimeCards].
Workday EmployeeID HoursWorked
--------- ---------- -----------
9/10/2014 1 7
9/10/2014 3 6
9/10/2014 4 9
The "child" subform linked to the "master" form by the [Workday] value. You can enter a variable number of entries for a given Workday by simply adding new rows to the subform (via the "New Record" row with the asterisk beside it).
For more information, see
Create a form that contains a subform

How to change the sqlite table structure dynamically in iPhone?

I'm developing an iPad application, in which i have to store some data in the database. So that, i prefer to use SQLite, here i have an doubt regarding the table structure. Let me explain, actually there is a view in which, the user can add the labor Qty, labor type and so on, at default i have displayed only one set of fields.
I have created table with the five fields ( Labor Qty, Labor Type.....) and it works fine. Now i need to setup a button "Add New" at the bottom, i apologize for the low resolution image, when the user click on the button, will generate another five fields below the previous. So how can i get the text fields values into the database table since i have created only for five fields. I tried and googled it but can't find the correct way. Any Help Appreciated. Thanks.
Well in that case what you can do is following.
put your content in UIScrollView
Have the textboxes in UIWebView and upon click on add new create new instance of that.
Put the X,Y co-ordinate in increasing manner let's say first time it is at 10,50 second time 40,50 third time 70,50 and so on,,
also increase X,Y co-ordinates of the button itself.
This way you can achieve above.
Using above logic you can get something like following.

iPhone UI Design approach - was using Excel Filtering

I'm new to iPhone development and don't know what the best iPhone UI approach for my problem is. That's where I was hoping you all could provide some input and guidance.
Here's the system & how it's currently used:
Right now, I have an Excel spreadsheet of data with four columns - Make, Model, Size, Value. There are about 1,000 rows of data. How the system is used in Excel is to use Filtering on the columns. First, you select the Make from the filtered column (there are about 8 unique Makes), then select a Model (each Make has between 1 and 20 unique Models), then select the Size (each Model has about 20 unique Sizes), then use the associated Value.
If I were to create an HTML page and jQuery with AJAX, I'd have three SELECT elements and one DIV (or some kind of label). When a Make is selected, populate the Models SELECT. Likewise, when a Model is selected, populate the Size SELECT. Finally, when a Size is selected, display the associated Value in the DIV. (Note, that when a Make is selected, I'd need to clear out the Value DIV and the Size SELECT in addition to the population of the Model SELECT. - appropriate action for selecting Size as well)
Now, given that, what do you recommend as a UI pattern for the iPhone?
You could do exactly that you describe for the HTML version, using a UIPickerView in each place where you would use and HTML SELECT. (The UIPickerView uses the "spinning wheel" metaphor to select from a list of values).
You could also use a single multi-component UIPickerView, where the first wheel is Make, the second Model, and the third Size. That works best if the names are short enough that you can fit all three (Make/Model/Size) in a single row on the screen.