You are viewing limited content. For full access, please sign in.

Question

Question

How is it possible to get the user name above multi-line field and this value does not change when this field is available on another form.

asked on December 21, 2022

Hi All,

I have assigned “{/_currentuser_display}" value to text above Multi line field so that when a user type notes in the multi line field , it shows the current user name.

My requirement is when this note field is visible on another form used by another user, it does not show the previous user name and rather shows current user name.

I understand this because current user is the user currently working on form.

How can I automate the user name to pop up when user is writing notes in the multi line field and this value does not change when this field is avaiable on another form.

The user requirement is when they are using multi line field to type in their notes, their name should be automatically visible in the multi line field and when this field is shown on another form, it should display the user name of user who wrote the notes in the multi line field.

I cannot use {/_currentuser_display} because it shows the current user working on the form and not the user who typed the notes in a field copied to the current form.
 

Kindly advise. thank you

image20.JPG
image20.JPG (115.67 KB)
0 0

Answer

SELECTED ANSWER
replied on January 3, 2023

The structure of forms created in the new designer is drastically different than the structure of forms created in the classic designer, so any CSS created for the classic designer is unlikely to carry over to the new designer.

I'm on prem not cloud, but I would think this would work for the new designer in both environments.  Give this CSS code a try (this assumes your table has been given a CSS Class Name of:  myTable ):

.myTable .table-row-remove {display: none!important;}

 

0 0

Replies

replied on December 22, 2022

The "Text Above Field" is not stored upon form submission, so each time the form is loaded, it's going to recreate that display.  In order to save the value between tasks it has to be an actual field value.

Typically, for something like this, I use a table.  Within the table, I'll have three fields: a date field (read only and set to default to the current date), a single-line field (read only and set to default to {/_currentuser_display}), and then a multi-line field for the notes (this is set to be read-only for prior submissions but editable for the current one).  I'll also use CSS to hide the ability to delete rows from the table.  Now, each user just clicks the Add Row button to add another row with their notes.  The date and name are automatically saved with any rows added, so that staff reviewing tasks later in the process can easily see who added each note.

1 0
replied on January 2, 2023

Hi Matthew,

Thank you for the solution.

Am trying with tables and the three fields options work, I get the right user name on the form. however I am unable to hide the delete rows from table. 

I have used this css code: .form-del-field { display:none!important; } but am still getting the option to delete rows,

Kindly advise how to fix this on LF cloud.

image21.JPG
image22.JPG
image21.JPG (220.91 KB)
image22.JPG (92.97 KB)
0 0
SELECTED ANSWER
replied on January 3, 2023

The structure of forms created in the new designer is drastically different than the structure of forms created in the classic designer, so any CSS created for the classic designer is unlikely to carry over to the new designer.

I'm on prem not cloud, but I would think this would work for the new designer in both environments.  Give this CSS code a try (this assumes your table has been given a CSS Class Name of:  myTable ):

.myTable .table-row-remove {display: none!important;}

 

0 0
replied on January 4, 2023 Show version history

It worked on cloud as well. Thank you.

I have another question with tables, when I select +add to add another row, is it possible to remove the attachments from the previous row automatically , rather than me clicking on remove icon. When its one attachment its easy to just click on remove, but if we have multiple attachments we have to remove them one by one and its time consuming.

The logic which I can think off is " when row value is {n+1} hide file upload filed of row {n}". Am I correct?

Is there a css or javascript which can enable this or other logic which can provide a solution for this query? Kindly advise.

Thank you

 

image23.JPG
image23.JPG (120.44 KB)
0 0
replied on January 4, 2023 Show version history

Unfortunately, as I am on prem version 11 Update 2, I don’t actually have the ability to edit Javascript on the new designer, and as mentioned, the structure of the forms in the new designer is drastically different than the classic designer so any code I could give you wouldn’t work as expected.

I recommend posting a new question.  That will allow you to mark this question as answered, and your new question will have better visibility.  In that new question make it clear what you are trying to do, that you need a Javascript solution for the new designer.

Before you do that, just double check that Field Rules won’t solve the issue.  I don’t believe there is a way to show the field only in the last row, but I know they added a lot of new field rules options in Update 3 that I haven’t reviewed yet, so maybe there is a way.

Best of luck to you!

0 0
replied on January 4, 2023

I agree, let me post a new question.

Thank you so much

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.