Can I hide a field on Create request page using Forge?
Asked by Andrew Belyaev:

Hi community,

The question is if a Forge app can give a possibility to hide native UI elements one way or another, using some allowed methods or simply adding some corresponding CSS or Javascript.

In particular, we need to hide the 'Share with' dropdown related to the organizations from the Create request view (and I'm aware of the possible existing ways to hide it, but those don't work for me ;)

I'm new to Forge, so any feedback will be much appreciated.


Answers:
author: Anusha A
body: Hi Adrew,

Welcome to Atlassian Community support and Thanks for your question!

I have noticed a few suggestions before I respond here. I would like to contribute by mentioning that it is not possible to use CSS to modify the appearance of the portal in this Cloud App. There was a similar feature request that has since been closed as "won't do":

* <https://jira.atlassian.com/browse/JSDCLOUD-22>

To the best of my knowledge, CSS and JavaScript can be used with Server and Data Center platforms. However, I've observed that you are utilizing Atlassian Forge, a Cloud-based development platform. If you're interested in delving deeper into this topic, I recommend bringing it up in the developer community. Here is the link - <https://developer.atlassian.com/support>

Regards,

Anusha A


author: Joseph Chung Yin
body: [@Andrew Belyaev](/t5/user/viewprofilepage/user-id/699690) -

Hi Andrew:

Question for you on why you want to create custom process via FORGE to customize the out of the box portal request type UI?

You know that you can configure (out of the box) the request type configuration for your projects to include or exclude any field for the customers to fill in when he/she submits their issues.

Please advise, so we can assist further.

Best, Joseph Chung Yin

comments: author: Andrew Belyaev
body: Hi [@Joseph Chung Yin](/t5/user/viewprofilepage/user-id/396739) ,

Thank you for answering!   

Yes, I know of out of the box capabilities, that's why I want to hide this button, as it can't be actually customized in a request form (unless users/organizations/sharing settings are modified)

So I just want to control the visibility of this 'Share with' dropdown:  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/327475iD339E63EC547EA39/image-size/large?v=v2&px=999 "image.png")


author: Joseph Chung Yin
body: [@Andrew Belyaev](/t5/user/viewprofilepage/user-id/699690) -

Unfortunately, I am not aware it can be done programmatically or out ot the box at this time. There is an outstanding enhancemetn ask - <https://jira.atlassian.com/browse/JSDCLOUD-7057>. I would recommend you to add yourself as a watch on it to receive any updates from Atlassian.

I believe there is an third party add-on that you can take a look which provides you with enhancement ability to control field's visibility - <https://deviniti.com/support/addon/server/extension/latest/request-form-fields-visibility/>

I have also raise your ask to Atlassian Support Team for possible recommendation.

Sorry.

Best, Joseph


author: Andrew Belyaev
body: Thank you Joseph!


Tags: cloud

jira-service-management

jira-service-management-cloud