I have custom CSS and Javascript to be loaded for CRED Form, I know there is the editor for putting the CSS and Javascript but I don't know how I can load external CSS or Javascript, so I check the page-id and load the script from functions.php
If Form type is "Add new content", I can check the page-id by using get_the_ID() and then add the script or stylesheet using wp_enqueue_script() or wp_enqueue_style(), how about if Form Type is "Edit existing content", how can I add the external CSS/Javascript to it?
Sorry I think you misunderstand my question, I know the get_the_ID(), my question is how I can load the custom CSS and Javascript for the Form Type is "Edit existing content", like hidden link;, there is no page-id can be checked.
Since the ID of the layout is provided in the URL then you can use this to check and from there you can load your script based on the matching condition.