adding two fields in single relationship in pyrocms - pyrocms

Is it possible to show two fields combine is single relationship field type.
I have two streams:
Stream 1 : Webinars
Stream 2 : Coaches (Fields first name, last name )
I want to add "coach first name" and "coach last name" in 'one relationship field' to Webinar

Only solution I can think of, is creating a new field in the coaches stream (named "display_name" for example) and use this as a title column for your coaches stream.
Combining the first name and the last name into this new field could either be done with javascript in the corresponding forms, or by triggering an event after the coaches form has been submitted.

Related

Google Sheets data validation's input reject option is not working

I have a google sheet something with 3 columns Column Name , Tech Club Name , Tech Club Email id . I want to have column Tech Club Email id to have unique entries . If someone tries to enter a duplicate entry it should reject it with an error message of Entry already present .
I have this data validation rule:
forumula: =COUNTIF($C$2:$C10,$C2)<2
Instead of the formula whenever I enter duplicate entry in the column it doesn't reject the input it only gives warning on the previous input as shown below:
How can have a data validation rule which simply rejects user from entering the duplicate value ?
The cell range entered in the Data Validation Box should not be the whole column (which contains 1000 rows), but rather a more limited range. If you want to check between the C2 and C10 cells, I would suggest changing the cell range from:
Sheet1!C1:C1000
to:
Sheet1!C2:C10
although you can choose a wider range if you want, it just cannot be the whole column.

XPATH - locating specific children element

in my DOM I have like 3 tables and each table has several input fields, is it possible to write xpath let say for 3rd input of 2nd table
I can locate only first input of each table, so I assume that its bracket thing
i did try
(//table[#class='table-name'])2[3]
also
((//table[#class=‘table-name’])[2])(//input)[3]
"the third input out of the second table":
((//table)[2]//input)[3]
first, this selects all tables from the document, regardless of their position //table.
then it picks the second one from that set (//table)[2]
going from this one, it selects all nested inputs (//table)[2]//input
and from this set, it picks the third one
Note that (//table)[2] is "from all tables anywhere, take the second one" whereas //table[2] is "take all tables who are the second child of their respective parents". The the former expression can only ever select a single table, while the latter can select more than one.

Create DropDowns that are based on which criteria are searched for

I am trying to allow the user to search on any of 4 criteria and have the rest of the 3 remaining field data validate based on the first search for selection.
I have four fields that I am trying to make dependent drop downs for the remaining 3 based on what you search for 1st. For example:
Scenario 1 - I search the data range validation for NAME and select a name in Cell L2.
I want the Phone, Email and Address to become dependent on the name was chosen (as there may be multiple records with the name of the person chosen).
I have accomplished this by using a secondary filter formula to filter address based on the name chosen and then applied data validation from the filter.
My problem is that I can't seem to figure out how to do the same thing if they pick the address first. Because my data validation is set on the filtered values and not the entire database. If they picked the address first, I want to validate based on ALL addresses and then filter-validate the NAME, PHONE and EMAIL.
I really just want them to be able to search whatever of the 4 criteria and then validate the other 3 on that result.
Any thoughts would help.
You can see my formula for filtering Addresses based on the Name selection in Cell S2 of the Customer Record Tab.
=if(L6="Address",filter('Sample Data'!$C:$C,'Sample Data'!$E:$E=L6),IF(L6="Phone",filter('Sample Data'!$C:$C,'Sample Data'!$D:$D=L3),IF(L6="Email",filter('Sample Data'!$C:$C,'Sample Data'!$J:$J=L4),L2)))
https://docs.google.com/spreadsheets/d/1E7adi88aEgvdV4ao8unbMHgZLEyu5CCRdTOjv8thjtc/edit#gid=1427488050
Select Name and only the Phones, Emails and Addresses for that selected name can be selected.
Select the Address and only the Names, Phones and Emails for that Address can be selected.
Same for Phone and for Email

Ajax concatenate fields

I'm currently building a form, and trying to limit the amount of fields I have to use.
I have three fields currently first name, middle initial, and last name. When these are combined they would be called "Display Name".
Is there a way to combine fields or would it have to be entered separately?
"Fname": $('#fname').val(),
"MInit": $('#minit').val(),
"Lname": $('#lname').val(),

How to allow user to add information for every fields in forms

i have a strange user request: they want to be able to say for every fields in every forms from where they get information used to compile it.
value must be selected from a list
essentially iam looking a way to avoid to double the fields.
one way can be add a M:M table where link field-name and information-source
but using this for retrive from real data table only fields derived from an info-source can be really bad
EDIT
to be more clear the solution i want to avoid is to have a data table like this:
fieldname1
fieldname1Origin
fieldname2
fieldname2Origin
fieldname3
fieldname3Origin
...
but i do the link table in this way:
FieldName
OriginId
i have to map oll field names and to search in it with string name when i need to query data table i have to do something like this
select
case when (exists select 1 from LinkTable where FieldName='fieldname1' AND
OriginId=SelectedID) then fieldname1
else NULL
end
for every fields
What about mixing several controls, such as a combobox with all lines, that would trigger the display of all columns of that line.
Something like that (I am currenlty working on that project):

Resources