203 Posts
louispapera
10 years ago
17
Topic

Dear sebloders, I would like to show the login name in a field in form & content types in site form.

I need to process this field for further needs.   Have you any ideas ? Many thanks in advance for your suggestions.

Regards, Louis

Get a VIP membership
693 Posts
rpoy
10 years ago
4
Level 1

Hi Louis,

Can you use the Article Created By Field?

regards,

Randy

203 Posts
louispapera
10 years ago
0
Level 2

Dear Randy, thank you for your suggestions.

I try to use this field and all right, user name is present within field in the form but it is not enought because I want process this user name by SD field concat and instead I find his code user. How I do to use user name directly to concat it with others fields?

Best regards. Louis

203 Posts
louispapera
10 years ago
2
Level 2

Dear Randy, thanks, I have forgotten that the same way I have obtain using fields with "select dinamic cascade". Please, is there anyone that give me a solution.

Best Regards, Louis

693 Posts
rpoy
10 years ago
1
Level 3

Hi Louis,

Can you give some more details about the Select Dynamic Cascade field?

thanks, 

Randy

203 Posts
louispapera
10 years ago
0
Level 4

Dear Randy, in my previous post I have explained to you  two equal situations:

1) I use, as for your suggestions "article created by". User is visible in form.

When I go to concat this field with others fields I note that system does not use "user" as for login but his code.

Example: I have to concat field1+field2+field3+article create by. I found: field1field2field3"user code". This last field is the ID that you find  in users manager.  

2) The same thing about select dinamic cascade. 

System use the code or key that is in file (table used to select the field) and to bring it in SD field concat. 

Instead, in both cases, I need to use the value that I read in the form. If you need further informations I am ready.

Thank you again, Louis

10 years ago
10
Level 1

Hello Louis,

in the settings of SD Concat field, you can choose "text or value".

Did you try to choose "text" there?

203 Posts
louispapera
10 years ago
9
Level 2

Dear Gerhard, I try without success. Have you another suggestions ? I wiil be in await.

Many thanks, Louis

693 Posts
rpoy
10 years ago
8
Level 3

Hi Louis,

Another method, create a text field with a condition (option 5).

Condition: is Filled By |art_created_by| #forrm#

Trigger: FieldName|isEmpty

So the value of the Created By is copied to the text field. Then, you should be able to process it.

If you have the Code Pack, you could also use that.

thanks,

Randy

203 Posts
louispapera
10 years ago
7
Level 4

Dear Randy, many thanks for your suggestions, I create a new field and copied within "art_created_by" but I see only code.

Second step is to process this field, that is I have to find user name in table........ Have you any new help to me ?

Best regards, Louis

693 Posts
rpoy
10 years ago
6
Level 5

Hi Louis,

Make sure that your Article Created By field is in the Hidden section of the Form Construction like so:

and your text field has this condition:

Your value should work.

thanks,

Randy

203 Posts
louispapera
10 years ago
5
Level 6

Dear Randy, many thanks for pictures, I already did this one as for your previous suggestion but I always receive user code in my field. 

Instead I need his username.  Awaiting your help, regards, Louis

693 Posts
rpoy
10 years ago
4
Level 7

Hi Louis,

I also received the user id, but it was because of the way the field was hidden.  By placing the Article Created By field in the hidden section vs hidden value it works.  Have you verified that?

thanks,

Randy

203 Posts
louispapera
10 years ago
3
Level 8

Dear Randy, many thanks, I tried and now is all right.

I did the same thing with another field (user_username about Login Name) and it goes not work. Why ?

I do not understand. 

Meantime I receive your support, best regards, Louis

4229 Posts
Kadministrator
10 years ago
2
Level 9

Hi Louis,

have you replicated the method entirely (place original field in Hidden section and add new text field with adjusted condition ) ?

203 Posts
louispapera
10 years ago
0
Level 10

Hi Klas, I did exactly the same thing. I put field "user_username" in hidden position. Then I create a new field with conditional state perfectly equal as per Randy instruction. Please, could you try from yourself and inform me about result. Best regards, Louis 

203 Posts
louispapera
10 years ago
0
Level 10

Hellò Blas and Randy, have you any news for me. Thanks in advance, regards, Louis

p.s. you may connect to my web site: http://regionesiciliana.altervista.org/index.php/anagrafica-enti as user, using "famiglia" "famiglia" to enter, then field "user test" in the form will be "Dipartimento Famiglia", while "user test login" have to be "famiglia" as for login but it is blank. WHY ? I have used same method to copy fields. 

203 Posts
louispapera
10 years ago
0
Level 1

Dear Randy and Klas, many thanks for your help, I partially solved the problem and I am satisfied the same. 

Many thanks again. Best regards, Louis

Get a Book for SEBLOD