32
Views
5
Comments
Perform edit button click action after navigation to add or edit data page
Question

Hi Team,

In the application, we have add or edit request page, in which it is having multiple section to edit the data. Currently whenever user clicks add or wanted to edit existing record, after navigating the page by default it is in disable mode, user needs to click on the 'edit' option to add or edit the data from the particular section.

So as per requirement, we wanted to avoid extra edit button click whenever user click to add new record. Means once page loads, user should see the section to add respective data by default, no need to click on edit button at first time scenario.

 Please guide me the proper approach to achieve the requirement.

Thanks in advance.


Sample Form.png
2024-05-22 06-12-56
Vignesh Prakash

Hi @Sandip Dhage

If possible please share a sample OML for better understanding.

Thanks,
Vignesh Prakash.

UserImage.jpg
Sandip Dhage

I tried to share the OML file but due to larger in size I'm not able to upload but I have share the screen capture for reference.  

2023-09-28 14-21-55
Daryna Kravets

Hi Sandip,

How do you control if the form is enabled/disabled? Is it a local boolean variable?

If so, set its default value to the one corresponding to your requirements; or use OnInitialize to set it according to input parameters if you have multiple scenarios leading to this page with diffferent requirements.

2024-05-22 06-12-56
Vignesh Prakash

Hi @Sandip Dhage

Can you please check the enabled property of the widgets and look it is updated on the onclick of EDIT, if that's the case just set the enabled property of all the widgets to true so that you can able to edit them.

Thanks,
Vignesh Prakash. 

2022-10-24 14-36-20
Diogo Vilaça

You can simply add a condition to the enabled property of the input widgets. Instead of True or False, change this to something like "If(RecordId = NullIdentifier,True,False)".

Hope it helps.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.